AlbaLynx Gets Stuck

Started by Hardcoal, September 18, 2024, 08:36:33

Previous topic - Next topic

Hardcoal

Each time i make a small progress. :)
im not sure ill solve it..
but i know its has something to do with the Text on Alba elements ..
Theoretically i can simply avoid putting text on buttons but it will destroy the whole idea of This GUI, or make it much harder to use.

i know how to change the Font of the GUI. its on an XML File..
but whatever i do wont solve the problem..

the
Quote<font Type="Bitmap" Name="CandaraGlow" File="Fonts/candara_regular_14.xml" />
is where the problem lies

<?xml version="1.0" encoding="ANSI"?>
<AlbaLynx>
    <!-- ================ -->
    <!-- Font loading -->
    <!-- Загрузка шрифтов -->
    <font Type="Bitmap" Name="CandaraGlow" File="Fonts/candara_regular_14.xml" />
    <font Type="Vector" Name="PT_Sans" File="Fonts/PT_Sans.ttf" Size="13px" Cache="200" Default="1" />
    <font Type="Vector" Name="PT_Sans_Bold" File="Fonts/PT_Sans_Bold.ttf" Size="13px" />
    <font Type="Vector" Name="CyrilicOld" File="Fonts/cyrillic_old.ttf" Size="20px" />

Some of the things I've done:   https://itch.io/profile/hardcoal  [I keep improving them btw]

William

#16
okay i do not know perhaps you can use an image with text for the button? i havent used blitzmax maxgui indepth.

i also saw this https://blitzmax.org/docs/en/api/brl/brl.polledinput/#function-appsuspended



QuoteThe functions in this module are only available when your program is running in Graphics mode. When working on GUI applications, you should use events instead.
im still interested in game app development even if its oldschool. i have ideas i want to try myself in this project if i can ever accomplish it.

Hardcoal

I can use image with text.. ye
and i do .. but still remain problem with textareas and so on..

ill keep trying.. 
Some of the things I've done:   https://itch.io/profile/hardcoal  [I keep improving them btw]

William

okay i understand. i do not know what albalynx is for.
im still interested in game app development even if its oldschool. i have ideas i want to try myself in this project if i can ever accomplish it.

Midimaster


Quote<font Type="Bitmap" Name="CandaraGlow" File="Fonts/candara_regular_14.xml" />
Can font bit-data really come from an XML file? I do not know anything about AlbaLynx. But I have never seen font-data inside an XML file.
Did you already had a look inside this file candara_regular_14.xml ?

I would expect something binair (a lot of 1 und 0) if it is a bitmap

Are you shure, that the ending is correct?
...crossing the alps with my bike at the moment

Hardcoal

Thats the best I have gotten.. I'm giving up on this..
I can capture it from time to time before it crashes.. and that's something.
way more than nothing

Strict
 
Import xorsteam.xors3d
Import albalynx.albalynx
Import albalynx.connect_xors3d

Import maxgui.drivers

xKey("M1Rk6-581XS-g6J5W-M4UFg-M77f8")
xSetEngineSetting("Splash::TilingTime", "0")
xSetEngineSetting("Splash::AfterTilingTime", "0")
xSetEngineSetting("Engine::Multithreaded", "1")

'xAppWindowFrame (False)

xGraphics3D(500, 300)

AlbaLynxInput_Connect()
AlbaLynx_Initiate(xGetRenderWindow(), xGetDevice(), ALGRAPHICS_DirectX9, 0) ;

alAddObserverHTMLLog("AlbaLynx.html", 255)

'/* Template loading */
alLoadGTemplates("Media/alba/bubble.xml") ;

Global ALDesktop = alCreateGDesktop("AlbaLynx v." + AlbaLynx_Version()) ;
Global gF
Global FF

Function CreateStuff()
gF = alCreateGButton(ALDesktop, "3343", 10, 10, 100, 30)
FF = alCreateGTextArea(ALDesktop, "34343", 10, 60, 100, 100, "")
End Function

CreateStuff()

CreateWindow("My Window", 40, 40, 320, 240)

Repeat

xCls()

xUpdateWorld(5)
xRenderWorld(5)

PollEvent()
If EventID() <> EVENT_APPSUSPEND Then
AlbaLynx_Update()
xFlip()
Else

Notify "Program Needs Save"

AlbaLynxInput_Disconnect()
AlbaLynx_Free()

AlbaLynxInput_Connect()
AlbaLynx_Initiate(xGetRenderWindow(), xGetDevice() , ALGRAPHICS_DirectX9, 0)

alLoadGTemplates("Media/alba/bubble.xml")
ALDesktop = alCreateGDesktop()
CreateStuff()

xFlip()

End If

Delay (5)
If xKeyHit(xKEY_ESCAPE) Then End
 
Forever
Some of the things I've done:   https://itch.io/profile/hardcoal  [I keep improving them btw]

Baggey

Quote from: Hardcoal on October 05, 2024, 19:51:41Thats the best I have gotten.. I'm giving up on this..
I can capture it from time to time before it crashes.. and that's something.
way more than nothing

Strict
 
Import xorsteam.xors3d
Import albalynx.albalynx
Import albalynx.connect_xors3d

Import maxgui.drivers

xKey("M1Rk6-581XS-g6J5W-M4UFg-M77f8")
xSetEngineSetting("Splash::TilingTime", "0")
xSetEngineSetting("Splash::AfterTilingTime", "0")
xSetEngineSetting("Engine::Multithreaded", "1")

'xAppWindowFrame (False)

xGraphics3D(500, 300)

AlbaLynxInput_Connect()
AlbaLynx_Initiate(xGetRenderWindow(), xGetDevice(), ALGRAPHICS_DirectX9, 0) ;

alAddObserverHTMLLog("AlbaLynx.html", 255)

'/* Template loading */
alLoadGTemplates("Media/alba/bubble.xml") ;

Global ALDesktop = alCreateGDesktop("AlbaLynx v." + AlbaLynx_Version()) ;
Global gF
Global FF

Function CreateStuff()
     gF = alCreateGButton(ALDesktop, "3343", 10, 10, 100, 30)
     FF = alCreateGTextArea(ALDesktop, "34343", 10, 60, 100, 100, "")
End Function

CreateStuff()

CreateWindow("My Window", 40, 40, 320, 240)

Repeat

    xCls()

    xUpdateWorld(5)
    xRenderWorld(5)
   
    PollEvent()
    If EventID() <> EVENT_APPSUSPEND Then
        AlbaLynx_Update()
         xFlip()
    Else
   
        Notify "Program Needs Save"
   
        AlbaLynxInput_Disconnect()
        AlbaLynx_Free()
        
        AlbaLynxInput_Connect()
        AlbaLynx_Initiate(xGetRenderWindow(), xGetDevice() , ALGRAPHICS_DirectX9, 0)

        alLoadGTemplates("Media/alba/bubble.xml")
        ALDesktop = alCreateGDesktop()
        CreateStuff()
           
        xFlip()       

    End If
   
    Delay (5)   
    If xKeyHit(xKEY_ESCAPE) Then End
 
Forever

@Midimaster is your man dont give up!? :-X

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 32GB ram  2x1TB SSD and NVIDIA Quadro K1200 on Acer 24" . DID Technology stop! Or have we been assimulated!

Windows10, Parrot OS, Amiga mini, ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Hardcoal



I dont stop midimaster from helping me    ;D
Some of the things I've done:   https://itch.io/profile/hardcoal  [I keep improving them btw]