Jump to content

All Activity

This stream auto-updates

  1. Today
  2. About that im talk about..!
  3. And what about the case if someone like "me" ) have both versions ?? I my case the standalone works better than steam version (on Windows10).. But in Linux the steam version branch 4.x works better... NO freezing after project creation,and NO crashing after importing projects previusly created (even if ill transfering the projects from windows OS to linux OS its still do the same issue (( And in a standalone version the license has been deactivated ((
  4. It now works nicely. Thanks for your help. I think Leadwerks can be used to build a lot of things. Not just games, but general programs as well. Thats the reasoning behind my calculator attempt. I am still trying to learn both Leadwerks and Lua/C++ ,coming from a VB background . Being used to Windows forms etc, building user interfaces with Leadwerks/Ultra Engine is quite fun.
  5. Your application looks very nice. Try this code: -- 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.id == EVENT_WIDGETACTION then if (ev.source == button1 ) then FirstNum = 1; if textfield.text == "0" then textfield:SetText("") end textfield:SetText(textfield.text.."1"); elseif (ev.source == button2) then FirstNum = 2; if textfield.text == "0" then textfield:SetText("") end textfield:SetText(textfield.text.."2"); end elseif ev.id == EVENT_WINDOWCLOSE then break end end
  6. Yesterday
  7. Wow, cool!
  8. 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. Пишем программы на новом кросс-платформенном фреймворке — Хакер.
  9. 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
  10. Last week
  11. Like what? There is a menu file for the model editor interface.
  12. Ill done this... so contex menu become rich...) but whats about the short cuts keys for needed operation in the workflow with models ?
  13. Game Mechanics series is written: https://www.leadwerks.com/learn/gamemechanics
  14. 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.
  15. The Distressed Airlock
  16. 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.
  17. What item are you trying to install?
  18. I'm getting a "File extension "mtl" cannot be installed" error meassge
  19. 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?
  20. 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.
  21. 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...
  22. What about a shortcut keys options to save the speed and time of workflow instead to cliking so many times ?)
  23. New prototypes have arrived...
  24. Awesome job dude!!! I will by it in a resonable prise.
  25. 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
  26. 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?
  27. Video tutorials are uploaded using more compression now, got the total size down to 1 GB.
  28. Yep, I thought it odd. Thanks!
  1. Load more activity
×
×
  • Create New...