ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   EditBox for numbers? (https://www.esoui.com/forums/showthread.php?t=9832)

rp12439_3 07/12/21 04:44 PM

EditBox for numbers?
 
Hi there,

is there a way to enable an editbox only for numbers?

I cant find a lot about "textType".

My sources:
https://wiki.esoui.com/UI_XML#EditBox

Thanks!

rp12439_3 07/12/21 05:02 PM

ive done it with lua tonumber() and checked if the result is number :)

Baertram 07/13/21 01:38 AM

Use the forum search please:
https://www.esoui.com/forums/showthr...T_TYPE_NUMERIC

Another source would be e.g.
LibAddonMenu-2.0 -> controls -> edit widget
There is a setting to enable only numeric and I think it's a standard ZOs part of the editbox.

Code:

textType = TEXT_TYPE_NUMERIC
TextTypes can be found in the ESOUIDocumentation_Pxx.txt file at teh API versions:
https://wiki.esoui.com/APIVersion#live_API_version
-> Link "API TXT Documentation:"

If you search within the ESOUI source code then for the texttype constants you will find examples in ZOS code.
https://github.com/esoui/esoui/blob/...ialog.lua#L615

btw:
Instead of creating forum threads for such simple questions join us here:
https://gitter.im/esoui/esoui

rp12439_3 07/13/21 02:40 AM

Hi there,

I did search the forum and the wiki and did not find anything specific about the texttype. The according page in the wiki "EditBox" "textType" did not exist. The forum posting about editbox are useless and in parts wrong.

I created the posting for other people to find better results with the same question. There are so many locations to search for everything and find nothing. I allways do this for some hours and after this i create a posting.

btw. joined gitter, thx for hint

Baertram 07/13/21 02:48 AM

Quote:

Originally Posted by rp12439_3 (Post 44399)
The forum posting about editbox are useless and in parts wrong.

From the link I had found via the forum search, 3rd comment by merlight:

https://www.esoui.com/forums/showpos...86&postcount=3
I do not see any wrong information here :p

And to ease the searches I have provided you the gitter chat, just come there and ask and we are glad to help.
btw: You are also able to change the wiki so add the info as example at the right to the tutorials or the howtos.
I've prepared a new entry for you, feel free to add the editbox XML stuff you found out that works etc.
https://wiki.esoui.com/How_to_use_ed...ric_input_only
Thanks

rp12439_3 07/13/21 03:06 AM

Quote:

Originally Posted by Baertram (Post 44400)
From the link I had found via the forum search, 3rd comment by merlight:

https://www.esoui.com/forums/showpos...86&postcount=3
I do not see any wrong information here :p

And to ease the searches I have provided you the gitter chat, just come there and ask and we are glad to help.
btw: You are also able to change the wiki so add the info as example at the right to the tutorials or the howtos.
I've prepared a new entry for you, feel free to add the editbox XML stuff you found out that works etc.
https://wiki.esoui.com/How_to_use_ed...ric_input_only
Thanks

thx! i searched for editbox :) i will add the texttype info to the wiki.

i am at gitter now


All times are GMT -6. The time now is 11:52 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI