1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ben - May 19 2015

Discussion in 'Developer Progress Reports' started by Benjamin, May 19, 2015.

  1. Benjamin

    Benjamin Lead Developer

    • Dev Leader
    Got an early start today so I'm ending a bit early. I actually have something somewhat interesting to show today! Yaay!

    *Vorb Engine*

    Did less on the vorb side today. I fixed a various bugs/missing features with layout and styling and such, for instance adding the ability to set a min/max size for widget, as well as fixing issues with options changing between C++ and LUA. I also made it so that widgets can be greyed out in LUA, so if the game is fullscreen for instance, it wont let you select borderless or change the screen resolution.

    * Game *

    On the game side of things I hooked up C++ with all the new UI things as usual, and I did a lot of changes to the actual LUA UI code itself. The code is quite neat and easy to use now!

    Here's some code from the UI pictured below.
    -- Planet Detail
    detailPanel = getNewListPanel()
    planetDetailSlider = SliderStyle.make("planetDetailSlider", 0, 6, "onPlanetDetailChange")
    alignSlider(planetDetailSlider, detailPanel)
    planetDetailLabel = LabelStyle.make("planetDetailLabel", "")
    alignLabel(planetDetailLabel, detailPanel)
    -- FOV
    fovPanel = getNewListPanel()
    fovSlider = SliderStyle.make("fovSlider", 60, 110, "onFovChange")
    alignSlider(fovSlider, fovPanel)
    fovLabel = LabelStyle.make("fovLabel", "")
    alignLabel(fovLabel, fovPanel)
    -- Fullscreen
    fullscreenPanel = getNewListPanel()
    fullscreenCheckBox = CheckBoxStyle.make("fullscreenCheckBox", "", "onFullscreenChange")
    alignCheckBox(fullscreenCheckBox, fullscreenPanel)
    fullscreenLabel = LabelStyle.make("fullscreenLabel", "Fullscreen")
    alignLabel(fullscreenLabel, fullscreenPanel)
    I added a lot of useful options to the options menu and styled it a bit better. The styling still sucks but I'm not gonna worry about that too much until after the demo since there is more important things to deal with right now.

    Right now the layout of the options menu is as follows: There is a main WidgetList widget, which is a widget that contains other widgets in horizontal fashion. Each option consists of a Panel widget that contains a label and then some other widget like a Slider or Checkbox. These panels are simply pushed onto the WidgetList and then they get spaced automatically based on a few parameters that you can set!

    Here is the options menu at a very small resolution, and yes everything works.


    And here it is at a very high resolution!


    As you can see, the resolution scaling works nicely! All the hard work payed off! :D

    I also did a little prototyping on the controls menu but I don't have anything substantial to show yet.
    Tomorrow I want to work on fleshing out the controls menu, and adding a couple game options. Then its all StarSystem dev! I think I want to do random planet generation first...

    Vorb Engine: 9
    Game Data: 6
    Game Code: 3
    Total: 18

    Now I'm gonna make pigs in blankets for dinner, then probably play The Witcher 3 until my eyes bleed. I'VE BEEN PATIENT ALL DAY I DESERVE THIS!
  2. Thomas988

    Thomas988 Back Into Space

    • Member

    Nice work on the resolution! 2K by 1K? Impressive! Also, look at all of those moons! :D
    Snipecoolbunny and ColdFuseon like this.
  3. Danarkivus-2

    Danarkivus-2 Back Into Space

    • Member
  4. NeonSturm

    NeonSturm Back Into Space

    • Member
    Will each setting menu show another view of the background planets?
    Some games have a transition between different backgrounds, and it looks awesome!

    If there will be more settings, a visual guide between setting name and setting can help a lot :)
    Or both aligned around a centre vertical ruler:​
    Setting name | Checkbox
    Setting2 name | Checkbox2
    Setting3 name | Checkbox3​

    Except that, I like it :thumbup:
    ColdFuseon likes this.
  5. ColdFuseon

    ColdFuseon Lost in Space

    • Contributor
    Oh, random planet generation, interesting :D
    Snipecoolbunny likes this.
  6. Snipecoolbunny

    Snipecoolbunny Back Into Space

    • Member
    cant wait! it looks REALLY cool!
  7. Con No 1

    Con No 1 Tester

    • Tester
    Instead of having the option "Fullscreen" and the option "Borderless Window" wouldn't it be better to have a single dropdown box or something that said "Windowed, Borderless Window, Fullscreen"
    Thomas988 and Snipecoolbunny like this.
  8. Snipecoolbunny

    Snipecoolbunny Back Into Space

    • Member
    i agree.
  9. Benjamin

    Benjamin Lead Developer

    • Dev Leader
    Good point, I'll do that!
    Thomas988, ColdFuseon and Con No 1 like this.
  10. Benjamin

    Benjamin Lead Developer

    • Dev Leader
  11. Thomas988

    Thomas988 Back Into Space

    • Member
    ColdFuseon and Benjamin like this.
  12. NeonSturm

    NeonSturm Back Into Space

    • Member
    If there are just 2-3 choices, can we get a [Option1|Option2|Option3] Button-Field?
    These are even easier to use and more seem-less.
    Con No 1 likes this.
  13. Benjamin

    Benjamin Lead Developer

    • Dev Leader
    Ah good idea!
    Con No 1 likes this.
Similar Threads: 2015
Forum Title Date
Developer Progress Reports Matthew - Nov 17 2015 Nov 17, 2015
Developer Progress Reports Matthew - Nov 06 2015 Nov 7, 2015
Developer Progress Reports Ben - Aug 9 2015 Aug 10, 2015
Developer Progress Reports Ben - July 24 2015 Jul 25, 2015
Developer Progress Reports Ben - July 16 2015 Jul 17, 2015

Share This Page