-
April 24th, 2020, 21:45 #1
Library Checkbox, Text & Theme alignment
I've been trying to fix or remove the boxes behind the text & checkboxes but I can't seem to find the relevant section to correct this mis-alignment. Can someone point me to the file xml file, or code section to fix this.
Ultimate License Holder
Systems:ALIEN, Savage Worlds (SWADE + Companions, 50 Fathoms, Interface Zero, Realms of Cthulhu), Call of Cthulhu 6th, FIASCO, Paranoia XP
FG Con 16 – Fantasy Grounds Online RPG Convention - Friday April 16th to Sunday April 18th, 2021
Register at www.fg-con.com for all the latest info.
-
April 24th, 2020, 21:57 #2
Someone could probably figure out a more optimal method but here's what I did to remove the icons altogether. First, replace CoreRPG's library_recordtype window class like so:
Code:<windowclass name="library_recordtype"> <sizelimits> <minimum height="34" /> </sizelimits> <script file="utility/scripts/library_recordtype.lua" /> <script> </script> <sheetdata> <stringcontrol name="name"> <anchored position="insidetopleft" offset="40,7"> <right offset="-25" /> </anchored> <font>reference-r</font> <multilinespacing>20</multilinespacing> <disabled /> </stringcontrol> <buttoncontrol name="base"> <anchored position="insidetopleft"> <right /> <bottom /> </anchored> <description control="name" /> <script> function onButtonPress() DesktopManager.toggleIndex(window.getRecordType()); end </script> </buttoncontrol> <buttonc_checkbox name="sidebar"> <anchored height="20" width="20"> <top anchor="center" offset="-10" /> <right offset="-10" /> </anchored> <script> function onValueChanged() window.onOptionChanged(); end </script> </buttonc_checkbox> </sheetdata> </windowclass>
Code:function setRecordType(sNewRecordType) bHandleOption = false; sRecordType = sNewRecordType; local sDisplayText = LibraryData.getDisplayText(sRecordType); name.setValue(sDisplayText); --icon.setIcon(LibraryData.getDisplayIcons(sRecordType)); synchState(); bHandleOption = true; end
-
April 25th, 2020, 05:13 #3
Thank you, it worked like a charm.
Ultimate License Holder
Systems:ALIEN, Savage Worlds (SWADE + Companions, 50 Fathoms, Interface Zero, Realms of Cthulhu), Call of Cthulhu 6th, FIASCO, Paranoia XP
FG Con 16 – Fantasy Grounds Online RPG Convention - Friday April 16th to Sunday April 18th, 2021
Register at www.fg-con.com for all the latest info.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks