Autor Beitrag
SirDregan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

WIN 2000, WinXP
D5 Prof
BeitragVerfasst: Mo 19.09.05 17:02 
Hallo!

Ich programmiere gerade ein Adventure unter Delphi mit Hilfe der DelphiX Komponenten. Ich würde die Dialoge natürlich gerne als Text anzeigen lassen (so wie z.B. bei Monkey Island 3). Weis jemand eine Möglichkeit Text direkt (also als String) in einem DXDraw Fenster darzustellen?

Danke schonmal für die Hilfe!
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mo 19.09.05 17:33 
ausblenden Delphi-Quelltext
1:
DxDraw1.Surface.Canvas.TextOut(X, Y, 'Mein Text');					

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
SirDregan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

WIN 2000, WinXP
D5 Prof
BeitragVerfasst: Di 20.09.05 08:06 
vielen Dank, da war ich wohl blind ^^
SirDregan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

WIN 2000, WinXP
D5 Prof
BeitragVerfasst: Do 22.09.05 13:20 
user profile iconGTA-Place hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
DxDraw1.Surface.Canvas.TextOut(X, Y, 'Mein Text');					


Leider funktioniert das so nicht, sobald ich den Befehl benutzen möchte, wird mein DXDraw-Fenster schwarz :(
Zur Vollstängikeit: Ich habe einen DXTimer in dessen OnTimerprozedur erst alles gecleared wird (dxdraww.surface.fill(0)), dann male ich einige Bilder auf die Surface (Imagelist.Item[1].draw(dxdraw.surface,0,0,0)) und am Ende kommt natürlich dxdraw.flip

Weis jemand woran das liegt? Gibts noch ne andere Möglichkeit?
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Do 22.09.05 15:44 
ausblenden Delphi-Quelltext
1:
DXDraw1.Surface.Canvas.Release;					

nicht vergessen!

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
SirDregan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17

WIN 2000, WinXP
D5 Prof
BeitragVerfasst: Do 22.09.05 16:06 
user profile iconGTA-Place hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
DXDraw1.Surface.Canvas.Release;					

nicht vergessen!


Ah ok danke, versuchs heute Abend gleich ma