Doesn't do anything yet, just changes color.
DCEZF23IB4LTMH6MPAWVUO47YZX5RUHOV2HMNOMNTFM3H3YM63MAC WR2DV3AKK2KMZNXDYTK2P5QJGRUM2WQG6UUCUAAJX4B5HBIBFYWAC 7YS7SSXMLS3W456N7U36HY2PTE4PX3MZNUXRJ3IYDUQU6J3IG2SAC R5HNWYMH47LWVHS5VVXNR6TCBDXDURVXZ6RCUNFTTTMIXF275ULQC MBESMU4YJIMFOX2OM2CUG3Y6TO64G4F5YU4ZIPJMED3TVTSNA6CAC R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC ZXQ2MMPAOIA4TN3TWMFPXZUL7NUE3EWXLV2JHBQXEINE7WCKFSIQC OF4P6TYQA7SUF4N2KPDN7LRTIRNXME2IZJHRLFGF3EMDTWZSGOYAC 7TQAF4BYIK75EEYCCK7VEUSZHNCWMWIA3HZGQKIILYESUZ5ZZRVQC KV64IWA3DKR4FL6E4BIG5SFCRQJ3DZFEJOUELCD5TC7DDVJQ6SWAC FBDRJ53NJ5BWDQGU2GWZ6NEYHKCCRD7RODMIG7QQZBRFUB4HR7OAC mouse_press_on_surface = function(x,y, mouse_button)if Cursor_node thenCursor_node.show_cursor = nilCursor_node = nilendif mouse_press_consumed_by_any_button_handler(HUD, x,y, mouse_button) thenreturnendlocal node = on_text(x,y)if node then-- position cursor in nodeCursor_node = nodeedit.mouse_press(node.editor, x,y, mouse_button)returnend-- pan surfacePan = {x=Viewport.x+x/Viewport.zoom,y=Viewport.y+y/Viewport.zoom}end
on_button = function(x,y, mouse_button)for _,node in ipairs(Surface) doif node.type == 'text' and node.button thenif x >= vx(node.x) and node.w and x < vx(node.x + node.w) thenif y >= vy(node.y) and node.h and y < vy(node.y + node.h) thenreturn nodeendendendendend