❄️🎁⛄ The Winter Games Tournament is Live! 🎄🎅❄️
Jump to content

Josh

Staff
  • Posts

    26,795
  • Joined

  • Last visited

Profile Information

  • Location
    USA

Recent Profile Visitors

1,527,068 profile views

Josh's Achievements

Grand Master

Grand Master (14/14)

  • Well Followed
  • Dedicated
  • Conversation Starter
  • Reacting Well
  • Problem Solver

Recent Badges

17.2k

Reputation

1.2k

Community Answers

  1. In the next build, tags will automatically get converted to lower-case.
  2. Will be fixed in tomorrow's update.
  3. Docs updated: https://github.com/Leadwerks/Documentation/blob/master/Lua/CreateInterface.md#remarks https://github.com/Leadwerks/Documentation/blob/master/Lua/CreateTile.md#remarks
  4. Okay, there's probably no bug but the documentation could use some extra explaination. You can create a tile or an Interface from both a single camera or a world. If it is created on a camera it will be drawn at the end of the camera render routine. If it is created on the world, it will just get drawn last, after all cameras have drawn. You had one object being created on a camera and one on the world, so it switched the drawing order around. Additionally, when you position a tile you can just provide two coordinates (x and y) unless you are using Z to sort the order. #include "Leadwerks.h" using namespace Leadwerks; int main(int argc, const char* argv[]) { //Get the displays auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Leadwerks", 0, 0, 1280 * displays[0]->scale, 720 * displays[0]->scale, displays[0], WINDOW_TITLEBAR | WINDOW_CENTER); auto framebuffer = CreateFramebuffer(window); auto world = CreateWorld(); auto camera = CreateCamera(world); camera->SetClearColor(Vec4(0.125f, 0.125f, 0.125f, 1)); //Load a font auto font = LoadFont("Fonts/arial.ttf"); //Create user interface auto ui = CreateInterface(camera, font, framebuffer->size); ui->background->SetColor(0,0,0,0);// make background transparent //Create widget iVec2 sz = ui->background->ClientSize(); auto button = CreateButton("Button", sz.x / 2 - 75, sz.y / 2 - 15, 150, 30, ui->background); auto tile = CreateTile(camera, 100, 100); tile->SetColor(0, 1, 0); float x = framebuffer->size.x / 2 - tile->size.x / 2; float y = framebuffer->size.y / 2 - tile->size.y / 2; auto target = Vec2(x, y); while (!window->KeyDown(KEY_ESCAPE) && !window->Closed()) { while (PeekEvent()) { const Event event = WaitEvent(); switch (event.id) { case EVENT_KEYDOWN: if (event.data == KEY_RIGHT) { target.x = x + tile->size.x; } else if (event.data == KEY_LEFT) { target.x = x - tile->size.y; } else if (event.data == KEY_UP) { target.y = y - tile->size.y; } else if (event.data == KEY_DOWN) { target.y = y + tile->size.y; } break; default: ui->ProcessEvent(event); break; } } x = Mix(x, target.x, 0.05f); y = Mix(y, target.y, 0.05f); if (abs(x - target.x) < 0.1f) x = target.x; if (abs(y - target.y) < 0.1f) y = target.y; tile->SetPosition(x, y); world->Update(); world->Render(framebuffer, true); } return 0; }
  5. I right-clicked on each of these files, selected "Convert to DDS", and each one worked with no issues. What steps do I have to perform to make an error occur?
  6. Some more information: The GUI system uses tiles to draw, when used with a 3D framebuffer. The tile order starts at 10,000. Perhaps I accidentally reversed the sort order? I will test further and solve this...
  7. I was able to prevent the crash. This isn't perfect, because there are some gaps being created by the carve operation. However, thsi always happens with complex boolean operations, and it is much preferable to making the application crash. This will be included in the next build that goes up on the beta branch.
  8. Done, wait for the docs system to recache.
  9. It appears the breakpoint is hit but the information is not being received by the editor, so those menu items and buttons never get enabled. In Tools > Options > General, what is you debug level setting set to? Do you have antivirus software preventing the game or editor from accessing the network? This is how they communicate with each other. If you just set a breakpoint somewhere near the beginning of main.lua, does the debugger ever display in the script editor? Is it possible to upload this project so that I can test it?
  10. I tried to make the problem occur, but this map works fine with VR and a directional light. Built using the VR game template. vrdirlighttest.zip In order to test this further I will need a map to test that produces the error.
  11. Step one was to just test the default template, which uses a single box lighting. Everything is fine there...
  12. Can you please attached the image that causes this problem so that I can try it? Thank you.
  13. As of version 5.0.1 we no longer use an environment variable for C++ compilation. The path to the Leadwerks install directory will now be stored in a property sheet in a new Visual Studio project.
  14. I meant that was something for me to do, but the answer to your question is here: https://github.com/Regalis11/scpcb
  15. Josh

    Ide Editor

    Do you mean the text size? The side panel is resizable.
×
×
  • Create New...