User Tools

Site Tools


widget_editor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
widget_editor [2020/11/30 20:11] justinwidget_editor [2020/12/03 17:40] justin
Line 7: Line 7:
 Custom [[widget|widgets]] can be displayed in-game using the [[Show Widget]] scripting function. You can also add them to the [[management screen]] by adding their IDs to the comma-separated list of [[widget|widgets]] in the "Experimental" section of your [[Game Configuration]]. Custom [[widget|widgets]] can be displayed in-game using the [[Show Widget]] scripting function. You can also add them to the [[management screen]] by adding their IDs to the comma-separated list of [[widget|widgets]] in the "Experimental" section of your [[Game Configuration]].
 </WRAP> </WRAP>
 +
 +=====Creating a Widget=====
 +
 +To create a new [[widget]], click the "Add" button ({{:wiki:add.png?nolink|}}) on the main toolbar and then provide a unique ID that will be assigned to it. Once created, the width and height of the [[widget]] can be adjusted from the "Widget Properties" panel on the left-hand side of the editor. Elements (item slots, text fields, buttons, etc.) can be dragged and dropped from the "Widget Tools" panel onto the grid layout of the [[widget]].
 +
 +Elements that have been placed can be resized by selecting the element and then dragging the handles of the selection box. To delete an element, select it and press the Delete key or drag and drop it outside of the [[widget]].
 +
 +See the "Elements" section below for a description of each element type that can be added to a [[widget]].
  
 =====Main Toolbar===== =====Main Toolbar=====
Line 20: Line 28:
  
 =====Widget Properties===== =====Widget Properties=====
-(WIP Overview)+The "Widget Properties" panel contains various settings that can be adjusted for the active [[widget]]. It is displayed on the left-hand side of the editor when no elements are currently selected.
 ^Icon^Property^Description^ ^Icon^Property^Description^
 |{{:wiki:tag_id.png?nolink|}}|Widget ID|Unique ID assigned to the [[widget]]. This ID is used to reference the [[widget]] in [[script|scripts]] and other places.| |{{:wiki:tag_id.png?nolink|}}|Widget ID|Unique ID assigned to the [[widget]]. This ID is used to reference the [[widget]] in [[script|scripts]] and other places.|
Line 32: Line 40:
  
 =====Elements===== =====Elements=====
-(WIP Overview, click on a type to view details)+Various elements can be added to a [[widget]] using the "Widget Tools" panel on the left-hand side of the editor. A brief description of each type is provided below. You can click on the name of particular element for more information about that element and any properties that can edited once added to a [[widget]].
 ^Icon^Type^Description^ ^Icon^Type^Description^
 |{{:wiki:chest.png?nolink|}}|[[Item Storage Slot]]|Slot for storing an [[item]] or stack of [[item|items]]. This is useful for [[inventory]] windows, [[item container]] windows, or other [[widget|widgets]] that are meant for storing [[item|items]] into for later retrieval and usage.| |{{:wiki:chest.png?nolink|}}|[[Item Storage Slot]]|Slot for storing an [[item]] or stack of [[item|items]]. This is useful for [[inventory]] windows, [[item container]] windows, or other [[widget|widgets]] that are meant for storing [[item|items]] into for later retrieval and usage.|
Line 46: Line 54:
 |{{:wiki:character.png?nolink|}}|[[3D Model]]|Element for displaying a 3D model that the player can rotate by clicking and dragging. This is currently limited to displaying the [[player_character|player character's]] model, with future updates allowing it to display others.| |{{:wiki:character.png?nolink|}}|[[3D Model]]|Element for displaying a 3D model that the player can rotate by clicking and dragging. This is currently limited to displaying the [[player_character|player character's]] model, with future updates allowing it to display others.|
 |{{:wiki:map.png?nolink|}}|[[minimap_element|Minimap]]|Element for displaying a top-down view of the current [[map]].| |{{:wiki:map.png?nolink|}}|[[minimap_element|Minimap]]|Element for displaying a top-down view of the current [[map]].|
- 
-=====Creating a Widget===== 
- 
-(WIP) 
  
 ~~NOTOC~~ ~~NOTOC~~
widget_editor.txt · Last modified: 2023/02/06 22:05 by justin