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 / currently making a chat box editor program

Author
Message
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 22nd Sep 2009 20:19 Edited at: 23rd Sep 2009 01:56
see next post

Attachments

Login to view attachments
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 22nd Sep 2009 20:22
repost because of spelling errors sry:

I am currently making a chat box editor

this is the basic concepts
I wrap the text

this is what i got so far:
I got start of node of what needs to be copied
and the end of node of what needs to be copied
my program gets every thing in between the
start node and end node to display the result.

my problem here is i am currently developing a box around that text area so I can select it. this would require to draw box at the end of each sentence then displaying the text under it. This is so I can copy and paste selected areas of text. If any one wants to help with this project just ask me.
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 22nd Sep 2009 22:22 Edited at: 22nd Sep 2009 22:22
Quote: "repost because of spelling errors sry:"


You DO know that there is an edit button that lets you edit your post right?

Click the "Edit Post" link in the bottom left-hand corner of your post to edit it.

Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 23rd Sep 2009 05:09 Edited at: 23rd Sep 2009 05:21
i currently have it know in a display text box that can be placed on the screen. I dont want to repost the code so I explain and what I added. Unless someone wants me to repost what I have.


and this
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 23rd Sep 2009 07:56
Using directX's Text methods, drawn using sprites, would be much faster than using GDK's native text commands. Also, DirectX's text commands will handle the wrapping for you, so you wouldnt need to worry about that.

Have a look at my port of some of Cloggy's D3DFunc stuff, it has all the source code there, and some cool text effects like shadows and anti-aliasing, its not using any GDK native functions for rendering text at all, its all pure directx, and quite alot faster than native GDK, here is the link :

http://forum.thegamecreators.com/?m=forum_view&t=156806&b=22

It has some other bits and pieces in there aswell, im sure you could make a pretty nice UI that had next to no performance hit on your app with it.

If it ain't broke.... DONT FIX IT !!!
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 23rd Sep 2009 20:21 Edited at: 23rd Sep 2009 22:57
oh I guess i could use the d3d func to display the text I was just thinking of that anyway after I made a function. But I think that using what I got in the code I can scroll with d3dfunc also useing about the same method as the last post. Nvr mind I use the sprite method and keep my wrap. Because then I be able to calculate the sprite postions better. So A user can select a certain area of text and copy that text.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 25th Sep 2009 02:37 Edited at: 25th Sep 2009 05:07
This program demonstrates how i will highlight text.
The basics are that I will load two text formats.
Then I will exclude a collar from that 2nd text.

My question here is there any way to view the hidden background
of the already hidden texture so it would make it faster.

Attachments

Login to view attachments
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Sep 2009 08:35
this is an example of highlighting text and see if cntrl c is pressed after. I dont use clipboard but this demo is from the previous code I had.


Go through yourself at a wall.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Sep 2009 20:54 Edited at: 27th Sep 2009 21:07
this looks ugly all I want it to return is a paragraph format of the same text.
if someone inputs:
hi i am here how are you.
paragraph format should be for the link:
h->i-> ->i-> ->a->m
h->o->w-> ->a->r->e
y->o->u->.
and i want the link to return
hi i am\nhow are\nyou.\0
can some one look at the following code it does the trick but it looks ugly as hell.


Go through yourself at a wall.
3d point in space
15
Years of Service
User Offline
Joined: 30th Jun 2009
Location: Idaho
Posted: 27th Sep 2009 21:11 Edited at: 27th Sep 2009 21:47
oh yea and i need to be able to add a user input if there is a new user input to this garbage.
so it would return:
i am fine is the new user input.

hi i am\nhow are\nyou?\ni am doing\nfine.

I dont think I like this i want it to be to different inputs with different collars

Go through yourself at a wall.

Login to post a reply

Server time is: 2024-10-01 14:28:09
Your offset time is: 2024-10-01 14:28:09