Skip to content

Identified some of markup_text_boxst #574

@alattalatta

Description

@alattalatta

I'm no reverse engineer but I was able to figure out what these do by evaluating lua scripts. (Steam 50.07)

markup_text_boxst.unk1

Is a vector of words. Line breaks are also words of its own, but not spaces. Each word can have a hyperlink. (See markup_text_boxst.unk_v50_2)

  • unk_00: The word, string.
  • unk_24: Index of markup_text_boxst.unk_v50_2 vector. This is for hyperlinking. -1 for none, i.e. plain text.
  • unk_28: Position of the word along the X axis. -1 for line breaks.
  • unk_2c: Position of the word along the Y axis. -1 for line breaks.
  • unk_30

So for a sentence "Serid Skincrafts was a anaconda.", markup_text_boxst.unk1[1] would be

unk_00: "Skincrafts"
unk_24: -1
unk_28: 6
unk_2c: 0

markup_text_boxst.unk_v50_2

Is a vector of hyperlinks.

For historical figures, I can:

local id = markup_text_boxst.unk_v50_2[index].unk_4
return df.historical_figure.find(id)

to retrieve the figure this hyperlink points.

markup_text_boxst.unk_v50_3

markup_text_boxst's width.

markup_text_boxst.unk_v50_4

markup_text_boxst's height.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions