edubart / otclient

An alternative tibia client for otserv written in C++11 and Lua, made with a modular system that uses lua scripts for ingame interface and functionality, making otclient flexible and easy to customize
Other
640 stars 402 forks source link

Text edit focus. #1212

Open guilhermesidney opened 8 months ago

guilhermesidney commented 8 months ago

"TextEdit" is not getting focus when clicked, as shown in the code below:

MiniWindow id: tradeWindow !text: tr('NPC Trade') height: 150 icon: /images/icons/icon-trade @onClose: onMiniWindowClose() &save: true &autoOpen: true

MiniWindowContents padding-left: 5 padding-right: 5 padding-bottom: 1 layout: verticalBox

TextEdit
  id: searchText
  size: 135 25
  !placeholder: tr('Type to search')

UIWidget id: miniborder anchors.bottom: parent.bottom anchors.left: parent.left image-source: /images/ui/miniborder size: 14 14 margin-left: 2 margin-bottom: 2