PDA

View Full Version : How to edit the text displayed on the sidebar



Bossitronas
December 4th, 2023, 20:57
Hello everyone,

I am running into with updating the text with a custom sidebar. I was able to get the menu to work but it doesnt display any text.

Does anyone know where the display text is stored? Any help is appreciated.

superteddy57
December 4th, 2023, 21:00
You will need to define the string as such with it appending the name you made for it in the library for the record type.
library_recordtype_label_<name>
library_recordtype_single_<name>
library_recordtype_empty_<name>

Example:
"item"
library_recordtype_label_item

Bossitronas
December 4th, 2023, 21:16
I dont quite understand what you are saying. This is what I have done so far. For both changes I copied the Special Abilities code and renamed to Augmentation.

scripts\data_library_35E.lua

aRecordOverrides = {

["augmentation"] = {
bExport = true,
aDataMap = { "augmentation", "reference.augmentation" },
sRecordDisplayClass = "referenceclassability",
aGMListButtons = { "button_augmentation_type" },
aPlayerListButtons = { "button_augmentation_type" },
aCustomFilters = {
["Type"] = { sField = "type" },
},
},

strings\strings_35e.xml

<!-- Augmentations -->
<string name="augmentation_grouped_label_name">Name</string>
<string name="augmentation_label_type">Type</string>
<string name="augmentation_empty_type">Class Feature</string>

Would I add the library_recordtype_lable_<name> to strings\strings_35e.xml or is it somewhere else? Thanks for the reply!

superteddy57
December 4th, 2023, 21:23
You would need to define these string resources:

<string name="library_recordtype_label_augmentation">Augmentations</string>
<string name="library_recordtype_single_augmentation">Augmentation</string>
<string name="library_recordtype_empty_augmentation">&#171; New Augmentation &#187;</string>

Bossitronas
December 4th, 2023, 22:21
Thank you for elaborating. I got it working now. Thank you for all the help :)