Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Text Class help needed!.

Author
Message
StartCoder
14
Years of Service
User Offline
Joined: 16th Oct 2009
Location:
Posted: 17th Oct 2009 03:42
Hallo Forum Members,

First of all Sorry for my bad English, i am from Netherlands.

Today i got my DakGDK.net and i start studing, the progress is going well except 1 thing and that is Text Class.

How can i declare text?

i tried it like this.


Dim txtHallo as DarkGDK.Text
Dim txtBye as DarkGDK.Text

txtHallo.showtext("Hallo")
txtBye.showtext("Bye")

txtHallo.Style = TextStyle.Bold


By using this code it makes them both bold, so i cant give them diffrent properties.
I look the help files and documentaion but no luck finden help on it, so i hope one of you experts can help.
Grayvyn
15
Years of Service
User Offline
Joined: 30th Oct 2008
Location: Southern California
Posted: 17th Oct 2009 09:31
I am more of a C# person but I think you don't declare DarkGDK.Text objects. I use...



But maybe I am doing it wrong? heh

StartCoder
14
Years of Service
User Offline
Joined: 16th Oct 2009
Location:
Posted: 17th Oct 2009 11:42
Grayvyn, Thanks for Your reply.

No i know you can use it that way, but how can i give them properties.

So let say i have 2 messages i can do this.




But that is not what i want, what if i want to change the text "Hello" later in my game then i have to get rid of the old one and make new one, so thats what i need.

When i am enabled to do that, i can do effects with tekst let say change position in game and all kind of stuff.
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Oct 2009 16:57
The text settings affect all text, you can't change that behaviour. You would need to change the bold parameter before you write each text string.

The text functions are only very basic and not really intended to be used in a game. You should consider making bitmap fonts for better results. Or maybe Cloggy will convert his D3D Dll to .net

StartCoder
14
Years of Service
User Offline
Joined: 16th Oct 2009
Location:
Posted: 17th Oct 2009 18:00
Oh thats 2 bad!.

There is no Good .Net Tutorials on bitmap fonts.
so i need to see how i will make good tekst system.

Login to post a reply

Server time is: 2024-03-29 09:24:24
Your offset time is: 2024-03-29 09:24:24