About Store Forum Documentation Contact



Post Reply 
[Question] Gui / Camera / Chat / Command...
Author Message
Jben Offline
Member

Post: #1
[Question] Gui / Camera / Chat / Command...
Hello, after a sleepless night BIG was working on GUI editor, I have some questions you asked:

1) How to lock the window in the gui editor. without changing the size and position ... how to lock it all?

2) Now, how to change the mode of movement of the character. the camera and the way of this move. We would have the same type of camera / displacement as WoW.

3) I would like to know how to program for the character's name appears on top of him during the game

4) When a player writes a message he also safiche top of his head.

Here I am greedy about my request and I crowns. I am French, my English is pathetic! sorry grin
04-15-2011 05:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jben Offline
Member

Post: #2
RE: [Question] Gui / Camera / Chat / Command...
For Question 1 :

(03-11-2011 09:54 PM)Dynad Wrote:  You can set its flag with WIN_FLAG enum.

enum WIN_FLAG // Window Flags
{
WIN_MOVABLE =0x01, // movable
WIN_RESIZABLE =0x02, // resizable
WIN_IMMEDIATE_ACT =0x04, // immediately activate when mouse enters window area
WIN_IMMEDIATE_DEACT=0x08, // immediately deactivate when mouse leaves window area

WIN_IMMEDIATE=WIN_IMMEDIATE_ACT|WIN_IMMEDIATE_DEACT, // immediately activate and deactivate when mouse enters or leaves window area
};

window.flag(~WIN_MOVABLE);

I found this on the forum but I do not understand how integrated. In "window.h" ?
(This post was last modified: 04-15-2011 07:42 PM by Jben.)
04-15-2011 07:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #3
RE: [Question] Gui / Camera / Chat / Command...
You set it when you create your window. You don't change header file from engine. Add your file, make window and then set flag. For example:
Quote:OmWindow=&OmGui_Objs.getWindow("OmWindow"); //create window from GUI FILE
OmWindow->flag&=~WIN_MOVABLE; //set flag of window you just create
(This post was last modified: 04-15-2011 07:57 PM by Seba.)
04-15-2011 07:57 PM
Find all posts by this user Quote this message in a reply
Jben Offline
Member

Post: #4
RE: [Question] Gui / Camera / Chat / Command...
I load my ".gobj" in the gui editor? but where I write this sentence. Sorry I'm novice .
04-15-2011 08:01 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #5
RE: [Question] Gui / Camera / Chat / Command...
Add, your own file when you open tutorial.sln in visual studio. To learn Engine open tutorial.sln and move through all file that are there, debug and see code. After that download BM demo and I think that if you have license you can download ERPG source code. After that you will know most of needed function to write game.
04-15-2011 08:08 PM
Find all posts by this user Quote this message in a reply
Jben Offline
Member

Post: #6
RE: [Question] Gui / Camera / Chat / Command...
I already do the tutorial. I work in MMOs source.
04-15-2011 08:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #7
RE: [Question] Gui / Camera / Chat / Command...
Maybe my mistake. In gui edytor you can't lock window you do It in your code like I write above.
04-15-2011 08:34 PM
Find all posts by this user Quote this message in a reply
Jben Offline
Member

Post: #8
RE: [Question] Gui / Camera / Chat / Command...
ok no worries. So I copy this one:

Quote:OmWindow=&OmGui_Objs.getWindow("OmWindow"); //create window from GUI FILE
OmWindow->flag&=~WIN_MOVABLE; //set flag of window you just create

But where?
04-15-2011 08:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #9
RE: [Question] Gui / Camera / Chat / Command...
Here is basic tutorial:
http://www.esenthel.com/wiki/index.php?t..._Beginners
You need to edyt one of the file you have in source folder in visual studio or add new and then write what you want. In visual it should look like that.
How to write you should know from tutorial.
Red - your file;
Green - engine file;


Attached File(s) Image(s)
   
(This post was last modified: 04-15-2011 08:46 PM by Seba.)
04-15-2011 08:45 PM
Find all posts by this user Quote this message in a reply
Jben Offline
Member

Post: #10
RE: [Question] Gui / Camera / Chat / Command...
I know all thissmile but is a fair question: where is the smallest value for a change but one of my window in login.gobj remains fixed, but adjustable size.
04-15-2011 08:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Seba Offline
Member

Post: #11
RE: [Question] Gui / Camera / Chat / Command...
Sorry I don't know then what you want to do. If you load your gui menu then in create where you add every think you can add flag. Sorry for post above I was thinking that you don't know where put source.
(This post was last modified: 04-15-2011 09:08 PM by Seba.)
04-15-2011 09:07 PM
Find all posts by this user Quote this message in a reply
Jben Offline
Member

Post: #12
RE: [Question] Gui / Camera / Chat / Command...
no no, do not be sorry. I was creating GUI. the only thing I can not do was make one but FIXED window in Login.gobj
04-15-2011 09:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #13
RE: [Question] Gui / Camera / Chat / Command...
(04-15-2011 09:27 PM)lindsay² Wrote:  no no, do not be sorry. I was creating GUI. the only thing I can not do was make one but FIXED window in Login.gobj

It's very easy wink

PHP Code:
load("gui/login.gobj"); Gui+=TShow(); FlagDisable(getWindow(CNULL).flag,WIN_MOVABLE); 

There is always evil somewhere, you just have to look for it properly.
04-15-2011 09:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Jben Offline
Member

Post: #14
RE: [Question] Gui / Camera / Chat / Command...
merci !

he told me an error with "SHOW()" .. :s

_______________________

EDIT:

I delete "show ()" is IT WORKS! Nice! Thank you "Dynad & Seba. smilesmilesmile
Now :


2) Now, how to change the mode of movement of the character. the camera and the way of this move. We would have the same type of camera / displacement as WoW.

3) I would like to know how to program for the character's name appears on top of him during the game

4) When a player writes a message he also safiche top of his head.

^^ Thank you all smile
(This post was last modified: 04-15-2011 09:51 PM by Jben.)
04-15-2011 09:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #15
RE: [Question] Gui / Camera / Chat / Command...
Ah yes.. the show() function was my own made function forgot about that xD

2) well i made this awhile ago as test: http://www.youtube.com/watch?v=iH_OVhM2wdg ...it was maybe a few hours of work... just extended the Camera Modes tutorial.

3) You can use D.text for that:
snippet:
PHP Code:
D.text(PosToScreen(Players[i].pos) ,S+Players[i]->getName()); 

4) Works the same as 3)
PHP Code:
D.text(PosToScreen(Players[i].pos) ,S+Players[i]->getName()+": " Players[i]->SayMessage()); 

There is always evil somewhere, you just have to look for it properly.
04-15-2011 10:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply