Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

klepto2

Members
  • Content Count

    330
  • Joined

  • Last visited

Community Reputation

155 Excellent

About klepto2

  • Birthday 08/26/1979

Profile Information

  • Gender
    Male
  • Location
    Hildesheim, Germany
  • Interests
    soccer, poker
    3d and 2d programming
    .net (wpf, silverlight and common forms)

Recent Profile Visitors

24,694 profile views
  1. A WIP Ocean system for Leadwerks 4 and later for UltraEngine. Features: FFT - Waves (calculated with compute shaders), Reflection, Refraction, Compatibility with the whole lighting system of Leadwerks. You can see that the ocean is affected by multiple light sources.
  2. View this video Description A WIP Ocean system for Leadwerks 4 and later for UltraEngine. Features: FFT - Waves (calculated with compute shaders), Reflection, Refraction, Compatibility with the whole lighting system of Leadwerks. You can see that the ocean is affected by multiple light sources.  
  3. klepto2

    stormy ocean

    Ocean-Rendering with stormy conditions using: Compute-Shaders, FFT and a custom LOD system (also having a projected grid version working)
  4. yes, and without shift it just moves the caret to first or last position
  5. Works! even with integrated gfx
  6. In the documentation, the Window::SetPointer method is not documented. Also, some available pointer values are not working under windows. window->SetPointer(MousePointer::POINTER_SIZENESW);
  7. This is the code for setting up the Vertical-Stackpanel: //Create widget auto sz = ui->root->GetSize(); auto panel = CreateHeaderPanel("VERTICAL STACKPANEL", 5, 95, (sz.x -10) / 2.0 , sz.y - 100, ui->root); panel->SetLayout(1, 1, 1, 1); auto psz = panel->ClientSize(); auto stackpanelVertical = CreateStackPanel(0, 0, psz.x, psz.y, panel, Orientation::VERTICAL); stackpanelVertical->SetLayout(1, 1, 1, 1); auto btn = CreateButton("Button", 0, 0, 0, 40, stackpanelVertical); LayoutSystem::SetMargin(btn, iVec4(6, 20, 6, 10)); btn = Crea
  8. klepto2

    LayoutSystem and WidgetCollection

    In this Gallery i will post some WIP Images of my Widget and helper Library for UAK. I will update my blog regulary but i will add images more frequently to this gallery. Planned Features: Easy Layoutsystem with various helper widgets StackPanel GridLayout FlowPanels more stuff... Additional Widgets HeaderPanels Spinner ContentControls Scrollviewer etc.
  9. You can also look into this: https://github.com/ButchDean/game-ai-by-example this repo contains the source of the book Game AI by Example by Mat Buckland and gives a lot of ideas and starting points for effective AI programming.
  10. Hi, I finally managed to build a first release candidate for a SyntaxEditor-Widget. The Widget is using the famous Scintilla TextEditor-Component under the hood and wraps the control into a UAK-Widget. At this point i only provide binaries (includes and libraries) but i am currently preparing to release the source as well. The source itself is semi-autogenerated with a manual created body and a tool which generates the main part of the Scintilla-Component based of so called iFace files maintained by the Scintilla author (these files contains the definitions of each enum or functio
  11. Ah, ok. Missed that you can parent a window to another window. Thanks.
  12. Don't know if this is needed for other os than windows but if you create a child window it might be useful to not show it in the taskbar like for tooltips or like UAK does it with the combobox. A hack to achieve this is doing the following: _window = CreateWindow("", 0, 0, 0, 0, displays[0], WindowStyles::WINDOW_HIDDEN | WindowStyles::WINDOW_CHILD); SetWindowLongA(_window->GetHandle(), GWL_EXSTYLE, (GetWindowLong(_window->GetHandle(), GWL_EXSTYLE) | WS_EX_TOOLWINDOW) & ~WS_EX_APPWINDOW);
  13. static const and scoped enums are 2 different things. the current enums look like a mix of enums names for constants. Normally only constants are uppercase. The thing is you don't need the uppercase-separated-by-underscore approach. You can keep the uppercase names of course: CreateTextfield(0,0,250,20,ui->root, TextfieldStyle::DEFAULT); // you can now clearly say what enum is used. with your approach you can't have something like this: enum VerticalAlignment { TOP,BOTTOM,CENTER }; enum HorizontalAlignment { LEFT,RIGHT,CENTER }; which leads to the need of the underscor
  14. Currently the enums in UAK are defined as unscoped enums like this: enum TextFieldStyle { TEXTFIELD_READONLY = 1, //TEXTFIELD_PASSWORD = 2, TEXTFIELD_TEXTCHANGEACTIONEVENT = 4, TEXTFIELD_LOSEFOCUSACTIONEVENT = 8, TEXTFIELD_ENTERKEYACTIONEVENT = 16, TEXTFIELD_DEFAULT = TEXTFIELD_LOSEFOCUSACTIONEVENT + TEXTFIELD_ENTERKEYACTIONEVENT, //TEXTFIELD_NUMBER = 8, //TEXTFIELD_INTEGER = 16, //TEXTFIELD_FILEPATH = 32, TEXTFIELD_PASSWORD = 64 }; I suggest to follow the common c++ suggestions to use scoped enums instead: enum class TextFieldStyle { ReadOnly = 1, Password
×
×
  • Create New...