Implemented custom marks and custom text features#1447
Open
Hrusteckiy wants to merge 3 commits intoOpenXRay:devfrom
Open
Implemented custom marks and custom text features#1447Hrusteckiy wants to merge 3 commits intoOpenXRay:devfrom
Hrusteckiy wants to merge 3 commits intoOpenXRay:devfrom
Conversation
Using: Add that node in `actor_menu_item(_16).xml`: ```<cell_item_custom_text x="1" y="1" width="24" height="16" stretch="1"> <text x="2" y="6" width="24" height="16" font="arial_14" color="ui_2" align="r" vert_align="c"/> </cell_item_custom_text>``` In item's section: ```item_custom_text = st_text item_custom_text_clr_inv = 100,250,100 item_custom_text_font = graffiti22 item_custom_text_offset = -2.0, -2.0``` `item_custom_text_clr_inv`, `item_custom_text_font`, `item_custom_text_offset`, are an optional, if not written - will be used font, color, offset from XML node. `item_custom_text` is a text from StringTable. `item_custom_text_offset` is an offset by right-bottom of cell
Using: Add that node in `actor_menu_item(_16).xml`: ```<cell_item_custom_mark x="1" y="1" width="24" height="16" stretch="1"> <texture>ui_item_count_back</texture> </cell_item_custom_mark>``` In item's section: ```item_custom_mark = true item_custom_mark_offset = -2.0, 0.0 item_custom_mark_size = 10, 10 item_custom_mark_texture = ui_item_count_back item_custom_mark_clr = 100,250,100``` `item_custom_mark_offset`, `item_custom_mark_size`, `item_custom_mark_texture`, `item_custom_mark_clr` are an optional - will be used texture, size, and color from XML node. By default it has position at right-bottom of cell, remember about it on offset setting up
659fa94 to
1ce721e
Compare
143d1ca to
118d39d
Compare
5b2ec76 to
6fffce9
Compare
e89fcc8 to
f6fd5cc
Compare
c3ffa4d to
09b0b99
Compare
e38d9d8 to
94d0261
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allows for add custom text strings and custom marks for item's icons. It is useful for separating items with the same icons. Look at this situation in "Survivor: Escape from the Zone" mod.

These features should help modders with solving this