群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
Interface modding
”(章节)
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
=== Element Types === These are the different types of elements that you can find when going through the Stellaris interface code. Sadly, most of them are controlled and only manipulable by hardcoded functions, which means they can't be fully used in custom GUI elements, but the default vanilla elements can all have their attributes modified. Some of these elements can be found as examples in <code>/interface/reference.txt</code>, whilst the rest, all around the vanilla interface files. {| class="wikitable sortable" !Element !Type !Modability !Description !Attributes |- | containerWindowType | Container Element | Attributes and Content | The main container element when structuring the GUI. | <code>name, position, size, moveable, clipping, orientation, origo, background, alwaysTransparent</code> |- | buttonType | Action Element | Attributes Only | This element is in most cases tied to a specific hardcoded action, but can also be used to display a graphical element, like a fake background. | <code>name, position, orientation, buttonFont, buttonText, appendText, oversound, clicksound, shortcut, format, vertical_alignment, pdx_tooltip, alwaysTransparent, web_link, rotation</code> |- | effectButtonType | Action Element | Attributes and Effect | Similar to <code>buttonType</code>, just that it's manipulable with the effect attribute, which are events called from <code>/common/button_effects/</code> and can run [[#Custom_Windows|<code>custom_gui</code>]]. <code>pdx_tooltip</code> doesn't work for <code>effectButtonType</code>, so use <code>custom_tooltip</code> when coding [[Effects|button effect]] instead. | <code>name, position, orientation, buttonFont, text, appendText, oversound, clicksound, shortcut, format, vertical_alignment, effect, alwaysTransparent</code> |- | iconType | Graphical Element | Attributes and Content | This element whose sole purpose is to display graphics; images, icons etc. | <code>name, position, orientation, spriteType, quadTextureSprite, frame, scale, pdx_tooltip, alwaysTransparent, rotation, centerPosition</code> |- | instantTextBoxType | Text Element | Attributes and Content | This element is for displaying text, which can either be directly inserted or using localisation references. | <code>name, position, orientation, font, text, appendText, maxWidth, maxHeight, fixedSize, format, vertical_alignment, text_color_code, pdx_tooltip, alwaysTransparent</code> |- | scrollbarType | Srollbar Element | Attributes and Content | This element is used to define the behavior of scrollbars for <code>listboxType</code> and <code>smoothListboxType</code>, but also for sliders as seen in the settings window. Can be used both horizontally and vertically. | |- | extendedScrollbarType | Srollbar Element | Attributes and Content | This element is used to define the behavior of scrollbars for <code>containerWindowType</code>. Can be used both horizontally and vertically. | |- | spinnerType | Carousel Element | Attributes and Content | This element is used to define the behavior of a clickable carousel, like seen in the settings window. | |- | guiButtonType | Action Element | Attributes Only | Same as <code>buttonType</code>, but specifically for scrollbars and <code>spinnerType</code> elements. | |- | positionType | Position Element | Attributes Only | Used to define positions for certain elements. These links are hardcoded. | |- | listboxType | List Element | Attributes Only | A scrollable list element that jumps between sub elements when scrolling. | |- | smoothListboxType | List Element | Attributes Only | A scrollable list element that smoothly scrolls. | <code>name, position, size, orientation, alwaysTransparent, borderSize, spacing, scrollbartype, offset, defaultSelection, priority, autohide_scrollbar</code> |- | OverlappingElementsBoxType | Horizontal List Element | Attributes Only | This element displays its content horizontally and will start overlapping them if width limit has been reached. | |- | gridBoxType | Grid Element | Attributes Only | This element displays its content in a grid layout, depending on horizontal and vertical limits. | <code>name, position, size, orientation, alwaysTransparent, slotsize, format, add_horizontal, max_slots_horizontal, max_slots_vertical</code> |- | checkboxType | Action Element | Attributes Only | This element is a yes/no graphical action box. | |- | editBoxType | Action Text Element | Attributes Only | This element is an editable text box, as seen when modifying names of objects in the game. | |- | dropDownBoxType | Dropdown Element | Attributes Only | Container element for <code>expandButton</code> and <code>expandedWindow</code> elements. | |- | expandButton | Action Element | Attributes Only | Similar to buttonType, just that it's linked to a toggleable <code>expandedWindow</code> element. | |- | expandedWindow | Toggleable Container Element | Attributes and Content | Element that is toggleable with <code>expandButton</code>. | |- | windowType | Floating Container Element (?) | Attributes Only | | |}
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录