![]() ![]() The following elements can be freely added and are usable with scripted GUIs. All elements must be used within containers, they will not work outside of one.Įlements will inherit the orientation of the containers they are located in unless the orientation is specified for the element itself. There are multiple element types used within containers. horizontal - Sets whether the scrollbar is horizontal (1) or vertical (0).startValue - The initial size the slider for the scrollbar starts at.stepSize - The size of increments using the increment button.minValue - The minimum value the scrollbar moves to (used to control the increments).maxValue - The maximum value the scrollbar moves to (used to control the increments).borderSize - The bounding box for border of the scrollbar.priority - The priority the scrollbar has over other elements.size - The bounding box for the scrollbar.position - The screen position of the scrollbar.rightbutton - The button element to use as the scrollbar right increment button.leftbutton - The button element to use as the scrollbar left increment button.track - The button element to use as the scrollbar tracker.slider - The button element to use as the scrollbar slider.The scrollbarType is used to define which elements a scrollbar is composed of. The following attributes are rarely or never used: downsound - The sound to play when container moves to hide position.upsound - The sound to play when container moves to show position.animation_time - The animation time in ms (i.e.animation_type - The animation if both show and hide animations are supposed to be the same ( accelerated, decelerated, or linear).hide_animation_type - The animation type used to hide the container ( accelerated or linear).show_animation_type - The animation type used to show the container ( decelerated or linear).hide_position - The screen position the container moves to in hide mode.show_position - The screen position the container moves to in show mode.The following attributes are used for animated containers: clipping - Sets whether the container will clip other elements (i.e.orientation - Sets the orientation origin for the position attribute.fullscreen - Sets whether the container is considered to obscure the whole screen.moveable - Sets whether the container can be dragged around.size - The bounding box for the container.position - The screen position of the container.background - An element to use as the container background.The following attributes are commonly used: The most common container type, used to hold any group of elements. The order and nesting of container definitions affects how they are displayed.ĬontainerWindowType There are exceptions to this, a common one is that you can add new containers for custom technology folders in countrytechtreeview.gui'. This is because the name attribute of a container is linked internally to whatever data the container requires. You cannot add new containers except through Scripted GUI. This can then be referred to in an element like so:Ĭontainers are used to group together elements and associate them with an internal function. This for example would make a macro called WINDOW_X_POS with the value of = 10 Macros can be used within interface files to make adjusting positions easier. In short, it means the subject it refers to is not modifiable. When internal is used here, it is referring to the source code that only Paradox can edit. All interface files are found in /Hearts of Iron IV/interface/. For example, containerWindowType is a container, whereas iconType is an element.Īn interface file uses the. The components of an interface file can be broken into two groups: containers and elements.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |