add max-chars attribute to text field

This commit is contained in:
2025-01-23 20:12:32 -06:00
parent dde250fd25
commit de45b379e3
4 changed files with 21 additions and 11 deletions

View File

@@ -3,8 +3,8 @@
<dialog defbtn='okay'>
<!-- OK button -->
<field name='who' top='26' left='186' width='64' height='16'/>
<field name='key1' top='54' left='165' width='52' height='16'/>
<field name='key2' top='54' left='285' width='52' height='16'/>
<field name='key1' top='54' left='165' width='52' height='16' max-chars='4'/>
<field name='key2' top='54' left='285' width='52' height='16' max-chars='4'/>
<text top='6' left='350' width='160' height='48'>The in-game "Buy" button checks for these response keys, in order: purc, sale, heal, iden, trai, ench</text>
<text relative='pos-in pos' rel-anchor='prev' top='0' left='0' width='160' height='50'>The "Sell" button checks for sell.</text>
<field name='extra1' top='114' left='344' width='64' height='16'/>