FG Spreadshirt Swag
  1. #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.
    Attached Images Attached Images
    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.

  2. #2

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,211
    Blog Entries
    7
    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>
    Then in the Lua script I simply commented out the setIcon() function:

    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

  3. #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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in