1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

GUI mod

Discussion in 'Modding' started by offreal, Jun 30, 2019.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. offreal

    offreal Trainee Engineer

    Messages:
    10
    Hello, there!
    Default control panel has a lot of UX/UI-problems, one of this - ambiguous indication of ON/OFF buttons.
    I redraw buttons background textures, and replace local game files:
    ...\SteamApps\common\SpaceEngineers\Content\Textures\GUI\Controls
    switch_on_off_right_highlight.dds
    switch_on_off_left_highlight.dds

    and i got this:
    [​IMG]

    it works!
    Now I want to make simple mod:

    Mod directory tree:
    Code:
    ...\AppData\Roaming\SpaceEngineers\Mods\Colored_onoff
       ├───Data
       │	   GuiTextures.sbc
       │
       └───Textures
    	   └───GUI
    		   └───Controls
    				   switch_on_off_left_highlight_green.dds
    				   switch_on_off_right_highlight_red.dds
    
    GuiTextures.sbc :
    Code:
    <?xml version="1.0"?>
    <Definitions xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema">
      <GuiTextures>
    	<Definition xsi:type="MyObjectBuilder_GuiTextureAtlasDefinition">
    	  <Id Type="MyObjectBuilder_GuiTextureAtlasDefinition" Subtype="Base"/>
    	  <Textures>
    
    		<Texture>
    		  <SubtypeName>switch_on_off_left_highlight</SubtypeName>
    		  <Path>Textures\GUI\Controls\switch_on_off_left_highlight_green.dds</Path>
    		</Texture>
    		<Texture>
    		  <SubtypeName>switch_on_off_right_highlight</SubtypeName>
    		  <Path>Textures\GUI\Controls\switch_on_off_right_highlight_red.dds</Path>
    		</Texture>
    
    	  </Textures>
    	</Definition>
      </GuiTextures>
    </Definitions>
    
    But it doesn't work. Where the problem may be?
     
  2. Takeshi

    Takeshi Apprentice Engineer

    Messages:
    200
    i cant find a solustion for you. But why dont you use your file (switch_on_off_right_highlight.dds) with the same name in the mod? If it works localy, it should also work as mod.
     
  3. Digi

    Digi Senior Engineer

    Messages:
    2,393
    It's likely that SBC isn't supported for modding, you should bugreport it on their support site and include the mod files for them to replicate.
     
Thread Status:
This last post in this thread was made more than 31 days old.