Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36

Thread: Code: Gui module or include file

  1. #11
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Code: Gui module or include file

    From scanning through the contest rules, it also seems that the point of the contest is to show what a language can do and also have code to look at, so perhaps having an include file would fit better and no need to iron out a module in little time. I do think a GUI module will be nice for thinBasic in the future however
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  2. #12

    Re: Code: Gui module or include file

    No, we don't have to show the code if we don't want to. It's not a requirement.

  3. #13

    Re: Code: Gui module or include file

    Hi,

    I think that for now, for the contest, an include file it's the right way. although the module could be great for the future. ;D

    Petr if you need some help for this and for particle engine i can try to help you.

    Ciao,
    Simone
    LapTop Pc: 2GHz Intel Core 2 Duo T7200 • 2GB 533MHz DDR2 RAM • 160GB hard disk • 512MB ATi Mobility Radeon X1600 graphics • Win Vista SP1<br />Desktop Pc: 1.6GHz Intel Core 2&nbsp; • 2GB DDR2 RAM •&nbsp; 1024MB Nvidia GeForce 8800 GT • WinXp&nbsp; SP3

  4. #14
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    Re: Code: Gui module or include file

    I had a play with Petr's menu.

    Its late and my computer is in the bedroom and the wife has just gone to bed so I better stop.

    Its very rough but it gives ideas.

    Attached Files Attached Files
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  5. #15
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Code: Gui module or include file

    Where do I download the 1.7 version? I just get the list of what is in it at the webpage, but no link to download, thanks for any help.

    I tried running both scripts for the gui, no errors appeared, but nothing ever showed up as a running application either. I figured it has to do with not having 1.7. Thanks again.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  6. #16
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Code: Gui module or include file

    Ken,

    1.7.0.0 is downloadable only on request. We are still working on it.
    Anyhow, I send you a PM.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  7. #17
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    Re: Code: Gui module or include file

    I forgot to mention

    Press ESC for menu
    move mouse over each box to see what happens
    click on top of exit to close menu.

    Right mouse to quit.

    @Petr. As you can see I use TBGL_EntityCreateBox i know I can use display lists but it was for speed of writing but I notice that textures are repeated rather than wrapped. Can I have a new option on the TBGL_EntitySetTexture or maybe a new keyword TBGL_EntitySetTextureStyle.


    thanks
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  8. #18
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Code: Gui module or include file

    Hi Abraxas,

    thank you very much for your GUI test!

    By default the texture coordinates for box are generated based on dimensions. If you want to stretch "options" texture on button with format 2:1, just create cube as 1, 1, 1 and then use TBGL_EntitySetScale( scene, entity, 2, 1, 1) for example.

    Maybe we could create a base model for button with round corners for example, with correct general purpose UV mapping, and then force texture with text for it ( possible right now ).

    I am adding your "texture style" request to my TODO list too.

    For now I think the modeled button is not that bad way, as it would mean good skinability too - all button models would be said to have center at 0,0,0, but we can detect model bounding box dimensions right now which is good for this kind of thing. I think


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  9. #19
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Code: Gui module or include file

    Phew, I am happy all works fine with 1.7. It is nice to see the nice gui examples working. It is fun to see what looks like 2D turn into 3D with the mouse over it and a good way to show mouseover effect for feedback to the user.

    The Windows bitmapped GUI worked really well too. I would say 2 thumbs up for both approaches as it seems the GUI is something that you guys got under "control", sorry for the pun
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  10. #20

    Re: Code: Gui module or include file

    As I think that an openGL gui function set would give us more freedom about the look of the game I started to work on one. Here is the start so far so you can imagine where this is heading too. I won't be upset if this will not be used as I know I will use it in one of my next game projects developed with thinBasic. This is text only right now, but will include the ability to use images.
    Attached Files Attached Files

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Code: Web Hiscore module or include file
    By Michael Hartlef in forum Code
    Replies: 9
    Last Post: 10-10-2008, 23:06

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •