I need this in order for the text in inputs to be displayed normally after change or clear
Dirtylarry or gooui
please help
I need this in order for the text in inputs to be displayed normally after change or clear
Dirtylarry or gooui
please help
I don’t understand why this is needed. Could you please elaborate on your problem?
move cursor on input - show menu
click on paste and test pasted to input - but this not active
and i move cursor and every fine
very annoying glitch ((((
please help me fix
it is in both the browser and the launcher
maybe just call on_input?
The solution is to call the DirtyLarry or Gooey function once in init(). This will trigger an update of for insurance the placeholder text.
how i made this?
Then add the corresponding function inside your on_input
:
dirtylarry/input.gui
:dirtylarry:input(“node_id”, action_id, action, gui.KEYBOARD_TYPE_DEFAULT, “Default text”)
i fix problem
for set input text i`am use extend function
withhout red marker string (i`ts new added me )
after i`am make manual set cursor position and font color and placeholder text
everything work nice
function dirtylarry.set_input(self, node, txt, empty_text)
local node_content = gui.get_node(node .. "/content")
local node_cursor = gui.get_node(node .. "/cursor")
local url = msg.url()
local key = tostring(url.socket) .. hash_to_hex(url.path) .. hash_to_hex(url.fragment or hash("")) .. node
dirtylarry.input_nodes[key].data = txt
gui.set_text(node_content, txt)
if string.len(txt) ~= 0 then
gui.set_color(node_content, dirtylarry.colors.enabled)
else
gui.set_color(node_content, dirtylarry.colors.disabled)
gui.set_text(node_content, empty_text)
end
if dirtylarry.active_node ~= nil then
local m_t = gui.get_text_metrics(gui.get_font(node_content), dirtylarry.active_node.data, 0, false, 0, 0)
gui.set_position(node_cursor, vmath.vector3(4 + m_t.width, 0, 0))
end
end