Editing Widget Configuration

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
This page is intended to answer frequently asked questions about configuration.
+
This is a page is intended to be filled with some commonly asked about configuration questions which can be solved with relatively simple changes in the non-advanced menu.
  
==Frequently Asked Questions==
+
== Adding or removing music ==
 
 
===Repositioning the UI Panels===
 
# Start a battle.
 
# Open the ingame menu by pressing the Menu button in the top right or pressing Escape or F10.
 
# Disable 'Simple Settings' by unticking the checkbox in the the bottom right of the ingame menu.
 
# Navigate to 'Settings/HUD Panels'.
 
# Untick 'Stay up to date' and 'Reset on screen resolution change'.
 
# Select the UI Preset 'None'.
 
# Close the ingame menu.
 
# Press Ctrl+F11 to enter tweak mode.
 
# Use the transparent green boxes that appear to drag and resize the interface.
 
# Press Escape to leave tweak mode.
 
 
 
If the UI Preset is not set to 'None' then the main parts of the UI will reset their positions next time the game is launched. Note that by setting 'None' you have become responsible for fixing your own UI if things break it, such as screen resolution changes.
 
 
 
=== Adding or removing music ===
 
 
Create the folder <code>Zero-K/sounds/music</code> with the five subfolders <code>war</code>, <code>peace</code>, <code>briefing</code>, <code>victory</code> and <code>defeat</code>. Put your music files in the appropriate folders. The only supported format is <code>.ogg</code>.
 
Create the folder <code>Zero-K/sounds/music</code> with the five subfolders <code>war</code>, <code>peace</code>, <code>briefing</code>, <code>victory</code> and <code>defeat</code>. Put your music files in the appropriate folders. The only supported format is <code>.ogg</code>.
  
To use your music, untick simple settings through the ingame menu and toggle <code>Settings/Audio/Use Included Tracks</code> then type <code>/luaui reload</code> in the game chat. There is also an option to not play any of the music included with the game.
+
To use your music, unticksimple settings through the ingame menu and toggle <code>Settings/Audio/Use Included Tracks</code> then type <code>/luaui reload</code> in the game chat. There is also an option to not play any of the music included with the game.
  
=== Changing team color ===
+
== Changing teamcolor ==
To set custom team colors [[:File:LocalColors.zip|download and unzip this]] in <code>Zero-K\LuaUI\Configs</code> such that the filepath <code>Zero-K\LuaUI\Configs\LocalColors.lua</code> exists. Edit LocalColors.lua with any text editor to configure your color as well as those of neutral units, allies, and enemies.
+
To set custom teamcolors [[:File:LocalColors.zip|download and unzip this]] in <code>Zero-K\LuaUI\Configs</code> such that the filepath <code>Zero-K\LuaUI\Configs\LocalColors.lua</code> exists. Edit LocalColors.lua with any text editor to configure your color as well as those of neutral units, allies, and enemies.
  
 
[[File:colorSelection.png]]
 
[[File:colorSelection.png]]
  
 
The 'Custom' option should appear in the color selection menu that can be found in the top left corner of the ingame interface. Select it to use your custom colors. You can make changes to the colors during the game by editing the file and typing <code>/luaui reload</code> to apply the updates.
 
The 'Custom' option should appear in the color selection menu that can be found in the top left corner of the ingame interface. Select it to use your custom colors. You can make changes to the colors during the game by editing the file and typing <code>/luaui reload</code> to apply the updates.
 
==Using custom widgets==
 
 
You can find the Widget List ingame under Settings/Misc 'Widget List' with simple settings disabled. By default it is bound to Alt+F11, you can change the hotkey from here. The widget menu contains many active widgets important to the default UI. Your custom widgets should be at the top, in a group called User local, from which you can activate them.
 
 
The widgets in Zero-K can be found here: https://github.com/ZeroK-RTS/Zero-K/tree/master/LuaUI/Widgets
 
 
===Activate local widgets===
 
 
In the ingame menu untick simple settings, then go to Settings/Misc and tick 'Show Advanced Settings'. Then open 'Local Widget Config' tick the boxes and type '/luaui reload'. Place local widgets in <code>Zero-K\LuaUI\Widgets</code>.
 
 
[[File:Local Widget Config SS.JPG]]
 
  
 
{{Navbox manual}}
 
{{Navbox manual}}
 
[[Category:Development]]
 
[[Category:Development]]

Please note that all contributions to Zero-K are considered to be released under the Creative Commons Attribution-ShareAlike (see Zero-K:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)