Difference between revisions of "Tile Systems (MenuQue)"
Jump to navigation
Jump to search
→TextEdit
imported>Kyoma (→Scroll) |
imported>Kyoma |
||
Line 76: | Line 76: | ||
===TextEdit=== | ===TextEdit=== | ||
A textedit system allows simple boxes that can be typed in. Although not as powerful as OBSE's TextInput it is much more flexible in terms of layout and can be added to any menu, even those that have a textedit box by default. It will match the default typing behaviour as seen in some menus. | |||
* The initial value is determined by the <string> trait when it gets activated, any changes once it is active are ignored. | |||
* The textedit is activated by clicking on either the element itself or the parent element. | |||
* To terminate the textedit the user has to click on any element (that can be targeted). | |||
* The use of the Enter key will terminate the textedit. | |||
Here is a quick template, when you see a trait with ... then that means it is of no importance to this system in particular and should be filled with whatever value you need it to be. They are listed for completeness and to better illustrate things. | |||
<pre> | |||
... | |||
<rect name="textedit"> | |||
<locus> &true; </locus> | |||
<target> &true; </target> | |||
<x> ... </x> | |||
<y> ... </y> | |||
<width> 240 </width> | |||
<height> 40 </height> | |||
<depth> 3 </depth> | |||
<text name="textedit_text"> | |||
<id> &TextEdit; </id> | |||
<string> My Initial Text </string> | |||
<depth> 3 </depth> | |||
<locus> &true; </locus> | |||
<target> &true; </target> | |||
... | |||
</text> | |||
</rect> | |||
... | |||
</pre> | |||
[[Category:MenuQue]] | [[Category:MenuQue]] |