All Activity
- Yesterday
-
Last week I wrote an article about how to use Ultra App Kit for app development for the Russian-language Hacker magazine - Ultra App Kit. Пишем программы на новом кросс-платформенном фреймворке — Хакер.
-
Werner started following Calculator attempt
-
I am trying to create a calculator with lua as scriptengine. It displays the current version of the gui fine, but I am having problems with the accept loop at the end. At the moment I have only entered a little code for number 1 and 2. The problem is that the textbox shows the number 1 and 2 when I hover over the buttons and not when they are clicked. Also I do not have a proper way of closing the window. Any suggestions to how to improve this accept loop? The code is as follows: -- Get the displays local displays = GetDisplays() -- Create a window local window = CreateWindow("Calculator", 0, 0, 800, 660, displays[1], WINDOW_CENTER | WINDOW_TITLEBAR)-- | WINDOW_RESIZABLE) -- Create User Interface local ui = CreateInterface(window) --Create buttons local sz = window:ClientSize() local x = (sz.x - 120) / 2 local y = 50 local sep = 40 -- Create widget local panel = CreatePanel(50, 50, sz.x - 100, sz.y - 100, ui.background) panel:SetColor(0, 0, 0, 1) panel:SetLayout(1, 1, 1, 1) -- Create text field local textfield = CreateTextField(70, 10, 600, 30,ui.background); textfield:SetText("0"); textfield:SetFontScale(2); textfield:SetColor(0,0,0,1) -- Row 1 local buttonMC = CreateButton("MC", 30, 30, 70, 70, panel); local buttonMR = CreateButton("MR", 110, 30, 70, 70, panel); local buttonM_Plus = CreateButton("M+", 190, 30, 70, 70, panel); local buttonM_Minus = CreateButton("M-", 270, 30, 70, 70, panel); -- Row 2 local buttonCE = CreateButton("CE", 30, 110, 70, 70, panel); local buttonC = CreateButton("C", 110,110, 70, 70, panel); local buttonPct = CreateButton("%", 190, 110, 70, 70, panel); local buttonDivide = CreateButton("/",270, 110, 70, 70, panel); -- Row 3 local button1 = CreateButton("1", 30, 190, 70, 70, panel); local button2 = CreateButton("2", 110, 190, 70, 70, panel); local button3 = CreateButton("3", 190, 190, 70, 70, panel); local buttonMultiply = CreateButton("X", 270, 190, 70, 70, panel); -- Row 4 local button4 = CreateButton("4", 30, 270, 70, 70, panel); local button5 = CreateButton("5", 110, 270, 70, 70, panel); local button6 = CreateButton("6", 190, 270, 70, 70, panel); local button_Minus = CreateButton("-", 270, 270, 70, 70, panel); -- Row 5 local button7 = CreateButton("7", 30, 350, 70, 70, panel); local button8 = CreateButton("8", 110, 350, 70, 70, panel); local button9 = CreateButton("9", 190, 350, 70, 70, panel); local button_Plus = CreateButton("+", 270, 350, 70, 70, panel); -- Row 6 local buttonPlusMinus = CreateButton("+/-", 30, 430, 70, 70, panel); local button0 = CreateButton("0", 110, 430, 70, 70, panel); local buttonDecimal = CreateButton(",", 190, 430, 70, 70, panel); local buttonResult = CreateButton("=", 270, 430, 70, 70, panel); while true do local ev = WaitEvent() if (ev.source == button1 ) then FirstNum = 1; textfield:SetText("1"); elseif (ev.source == button2) then FirstNum = 2; textfield:SetText("2"); end -- elseif EVENT_WINDOWCLOSE then return 0; -- if ev.id == EVENT_WIDGETACTION then -- Print(Widget(ev.source).text) -- elseif ev.id == EVENT_WINDOWCLOSE then -- return 0 -- end end
-
Koebe changed their profile photo
- Last week
-
Like what? There is a menu file for the model editor interface.
-
Ill done this... so contex menu become rich...) but whats about the short cuts keys for needed operation in the workflow with models ?
-
Lujaxea joined the community
-
Game Mechanics series is written: https://www.leadwerks.com/learn/gamemechanics
-
I uploaded a new zip file without the OBJ and MTL files, since these are not recognized by the installer: You will need to delete the folder C:\ProgramData\Leadwerks\Community\Downloads and maybe \WebCache to clear the downloads data.
-
billybob1281 joined the community
-
The Distressed Airlock
-
Josh started following Add New Primitive Suggestion
-
I think support for smooth groups is a prerequisite for spheres to be done right. Also, the way CSG texture mapping works isn't that great for spheres.
- 1 reply
-
- 1
-
-
What item are you trying to install?
-
slick29 started following Add New Primitive Suggestion and Too many request with bad key
-
I'm getting a "File extension "mtl" cannot be installed" error meassge
-
I swear older versions of Leadwerks had the sphere as a primitive option, but I'm probably wrong Is there a reason why this wasn't added in version 5? Is there a possible workaround to this?
-
raiver19 joined the community
-
Josh started following Shortcut keys
-
In (User)/Documents/Leadwerks/UI you can modify the menu files. Just remove the underscore in front of the file name, and it will be loaded preferentially.
-
As in use in Blender or GIMP or many others software there is a very helpful tweaks with hot keys that significant improve the speed of workflow and avoiding of extra mouse pointing / cliking for simple tasks like skale-rotate-position...
-
Epsylon started following POLL - PBR Water Puddles / Muddy Water Puddles and Shortcut keys
-
What about a shortcut keys options to save the speed and time of workflow instead to cliking so many times ?)
-
-
POLL - PBR Water Puddles / Muddy Water Puddles
Epsylon replied to Alienhead's topic in General Discussion
Awesome job dude!!! I will by it in a resonable prise. -
Using FPSPlayer, Pushbuttons, and ChangeEmission
3Dski7059 replied to 3Dski7059's topic in Bug Reports
If you successfully open this map, my "buttons" are actually 2 large boxes. I tried changing them to collision triggers to affect the cylinder's color, but that failed, just as my attempt to make them pushbuttons did. The "buttons" are currently configured as pushbuttons. It's probably some simple detail that I'm missing, but I tried to set what I thought was needed. Thanks! start_map.zip -
PuzzlingGGG joined the community
-
I just uploaded the videos onto the Leadwerks beta branch. I do not know how to investigate the other issue. Leadwerks 5 is now compiled with VS 2026. Maybe it is possible there is some incompatibility there with Proton?
-
Video tutorials are uploaded using more compression now, got the total size down to 1 GB.
-
Yep, I thought it odd. Thanks!
-
Josh started following Tile and Leadwerks 5 Beta Issues
-
The videos are currently being re-uploaded in a more compressed form, to decrease the install size. I do not know any reason the editor would crash when opening a project. I don't think any major changes have taken place in between those two builds.
-
There is a member for the text: https://www.leadwerks.com/learn/Tile
- 1 reply
-
- 1
-
-
3Dski7059 started following Leadwerks 5 Beta Issues
-
It isn't a big issue, but the Leadwerks 5 Beta has a number of issues on my Linux distro. First, the initial tutorials screen is empty when it opens. Second, the main editor crashes when you try to open a new project. In contrast, Ultra Engine Pro doesn't exhibit these problems, so I can continue to experiment with projects there.
-
The entity emission color will only have any effect if the material has an emission texture. Make sure your entity shows emission if you just set the color in the editor. If the script still doesn't work, you can upload a simple map that shows the problem and I will take a look.