Home   Help Search Login Register  

Author Topic: Dialog (menus) generator tool  (Read 8832 times)

0 Members and 1 Guest are viewing this topic.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:Dialog (menus) generator tool
« Reply #45 on: 11 Apr 2004, 01:38:38 »
Razorwings

please let me tell you, you're a god!

this tool you made is exactly what i needed for my actual map. You can be sure you'll get an extra credits section into this mission.

NeoKabookie

  • Guest
Re:Dialog (menus) generator tool
« Reply #46 on: 18 Apr 2004, 16:55:14 »
I am new to scripting so if this question is a no brainer don't laugh.  I installed your editor and got it to work fine with buttons and other stuff but one thing that I cannot get working is drop down menus.  The tutorial that comes with it says nothing about making them and if anyone knows how I would appriciate a brief example of how to do this.  Also razorwings18, i would suggest adding into the tutorial that comes with it a detailed example of how to use all the dialog controls

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Dialog (menus) generator tool
« Reply #47 on: 18 Apr 2004, 17:09:35 »
You should use this tool in conjunction with VectorBosons Dialogue Tutorial.....available from the Editors Depot.


EDIT:.........I posted an example mission on page 2 of this thread.....Take a look at that to see how drop downs are made.

Planck
« Last Edit: 18 Apr 2004, 17:14:02 by Planck »
I know a little about a lot, and a lot about a little.

NeoKabookie

  • Guest
Re:Dialog (menus) generator tool
« Reply #48 on: 24 Apr 2004, 00:45:19 »
Thank you for that.  I read through VectorBosons Dialogue Tutorial and I was able to make list boxes and drop down boxes.  This will make my missions a lot more interesting now.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Dialog (menus) generator tool
« Reply #49 on: 02 May 2004, 15:08:23 »
About my problem with reloading a previously saved
dialog into your dialog maker tool:

I've tried to do it on my PC at work too (to make sure it isn't
a single pc problem), and same happened there.

If i load a dialog, previously saved (save and load with the
very same version of the tool), dialog maker doesn't response
anymore.

I've already sent you such an ofd file to the email address, you
mentioned.

Anybody else having experienced this problem yet?

---------------------------------------


Now to something different:

as i already said, it would be nice, if you could add some kind
of default template dialogue features.

See there's the slider - it would be cool having the option for
placing a vertikal or horizontal slider (atm there's only ST_HPOS)
available, and in case i want to create an up/down slider, it
cannot be done through dialogmaker (only in description.ext).

Then there's another thingy:

Actually it's only possible to drag one single object, where
it would be handy to select more at once - may it be by dragging
a square around, or by ctrl-click or shift-click.
Don't take this one too serious, as i seem to reckon that you're
already trying to implement that feature.


Then i got one question to anybody, having experience with
dialogues:

What style would i have to use to create a 360° circle slider?
I mean such a slider, which is used for their unit's heading, when
you place a unit in the editor.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Dialog (menus) generator tool
« Reply #50 on: 06 May 2004, 16:23:56 »
Larsen,

the problem is: you have to know what you're doing, when
trying to merge two different description.ext files.

There's two seperate things when making a dialog:

The definition of the controls
(this is only required once)

and

The definition of the dialog itself - where the dialog-arrangement will be configured
(this has to be done seperately for each dialog)

e.g: class mydialog1

The whole stuff below is only required once in your description.ext file.

Code: [Select]
// Control types                           == NECESSARY==
#define CT_STATIC                  0
#define CT_BUTTON                  1
#define CT_EDIT                     2
#define CT_SLIDER                  3
#define CT_COMBO                  4
#define CT_LISTBOX               5
#define CT_ACTIVETEXT            11

// Static styles
#define ST_HPOS                  0x0F
#define ST_LEFT                  0
#define ST_RIGHT               1
#define ST_CENTER               2
#define ST_UP                     3
#define ST_DOWN                  4
#define ST_VCENTER            5

#define ST_TYPE                  0xF0
#define ST_SINGLE               0
#define ST_MULTI               16
#define ST_TITLE_BAR         32
#define ST_PICTURE            48
#define ST_FRAME               64
#define ST_BACKGROUND         80
#define ST_GROUP_BOX         96
#define ST_GROUP_BOX2         112
#define ST_HUD_BACKGROUND   128
#define ST_TILE_PICTURE      144
#define ST_WITH_RECT         160
#define ST_LINE                  176

#define ST_SHADOW               256
#define ST_NO_RECT            512

#define ST_TITLE               ST_TITLE_BAR + ST_CENTER

// Predefined controls
#define IDC_OK                  1
#define IDC_CANCEL            2

// Colors
#define TextColor         0.08, 0.08, 0.12
#define InvTextColor   0.35, 0.38, 0.36

// Fonts
#define FontS "tahomaB24"
#define FontM "tahomaB36"

#define FontHTML "courierNewB64"
#define FontHTMLBold "courierNewB64"
#define FontMAP "courierNewB64"
#define FontMAIN "SteelfishB64"
#define FontMAINCZ "SteelfishB64CE"
#define FontTITLE "SteelfishB128"
#define FontTITLEHalf "SteelfishB64"
#define FontBOOK "garamond64"
#define FontNOTES "AudreysHandI48"

class RscText
{
   type = CT_STATIC;
   idc = -1;
   style = ST_LEFT;
   colorBackground[] = {0, 0, 0, 0};
   colorText[] = {TextColor, 0.75};
  font = FontS;
   sizeEx = 0.02;
};

class FancyFont:RscText
{
   type = CT_STATIC;
   idc = -1;
   style = ST_NO_RECT;
   colorBackground[] = {0, 0, 0, 0};
   colorText[] = {TextColor, 0.75};
   font = FontS;
   sizeEx = 0.02;
};

class RscActiveText
{
   type = CT_ACTIVETEXT;
   style = ST_LEFT;
   color[] = {0, 0, 0, 1};
   colorActive[] = {1, 1, 1, 1};
  font = FontMAIN;
   sizeEx = 0.05;
   soundEnter[] = {"ui\ui_over", 0.2, 1};
   soundPush[] = {, 0.2, 1};
   soundClick[] = {"ui\ui_ok", 0.2, 1};
   soundEscape[] = {"ui\ui_cc", 0.2, 1};
   default = false;
};

class RscActiveMenu : RscActiveText
{
   color[] = {1, 1, 1, 1};
   colorActive[] = {1, 0, 0, 1};
   font = FontTITLEHalf;
   sizeEx = 0.05;
   default = false;
};

class RscButton
{
        type = CT_BUTTON;
        idc = -1;
        style = ST_CENTER;
        colorText[] = {0, 0, 0, 1};
        font = FontHTML;
        sizeEx = 0.025;
        soundPush[] = {, 0.2, 1};
        soundClick[] = {"ui\ui_ok", 0.2, 1};
        soundEscape[] = {"ui\ui_cc", 0.2, 1};
        default = true;
};

class RscObject
{
   type = CT_OBJECT;
   scale = 1.0;
   direction[] = {0, 0, 1};
   up[] = {0, 1, 0};
};

class RscObjNotebookListBox
{
   type = CT_3DLISTBOX;
   style = 0;
   selection = "display";
   angle = 0;
   size = 0.8;   // 3D size
   colorSelect[] = {0, 1, 0, 1};
   colorSelectBackground[] = {0, 1, 0, 0.2};
   colorText[] = {0, 1, 0, 0.5};
   font = FontHTML;
};
class RscLB_C
{
        style = 0;
        idc = -1;
        colorSelect[] = {1,1,1,1};
        colorSelectBackground[] = {0,0,0,1};
        colorText[] = {0,0, 0, 0.6};
        colorBackground[] = {0,0,0,0};
        font = FontHTML;
        sizeEx = 0.025;
        rowHeight = 0.04;
};
class RscListBox : RscLB_C
{
        type = CT_LISTBOX;
};
class RscCombo : RscLB_C
{
        type = CT_COMBO;
        wholeHeight = 0.3;
};

class RscEdit
{
       idc = -1;
       type = 2;
       font = "courierNewB64";
       sizeEx = 0.02;
       colorText[] = {0,0,0,1};
       colorSelection[] = {0.5, 0.5, 0.5, 1};
       autocomplete = false;
       style = 0;
};

hope this helps

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline Spinor

  • Members
  • *
  • I'm a llama!
    • The chain of command
Re:Dialog (menus) generator tool
« Reply #51 on: 06 May 2004, 22:51:07 »
Quote
If i load a dialog, previously saved (save and load with the
very same version of the tool), dialog maker doesn't response
anymore.

I've already sent you such an ofd file to the email address, you
mentioned.

Anybody else having experienced this problem yet?
The same here, no loading of saved .ofd files possible.

Quote
What style would i have to use to create a 360° circle slider?
I mean such a slider, which is used for their unit's heading, when
you place a unit in the editor.
AFAIK, these are not available though scripting. Could be mistaken though.

Offline Razorwings18

  • Contributing Member
  • **
  • I'm NOT a llama. I checked.
Re:Dialog (menus) generator tool
« Reply #52 on: 07 May 2004, 11:17:23 »
Chris: did you get my reply to your mail -about a week ago-?
In case you didn't, I asked if you could send me your regional configuration settings (in both machines), and if possible the system specs. The OFD file you sent me worked perfectly for me.
The "template" idea is a good one, but I think it may be a bit tough to implement without doing some major code shuffling. I'll add it to my "ideas" list.

Spinor: Could you send me yours too? I'm trying to establish a pattern so I know where to look.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Dialog (menus) generator tool
« Reply #53 on: 07 May 2004, 12:30:28 »
Yeah Razorwings,

First i wanna say thanx for your quick reply

Second: I suppose as Spinor seems to be from Germany (ain't i
a good spy or what  ;D ) and i am from Austria - we both having
german language oriented system configurations - maybe the
problem comes somewhere from this direction, as my home pc
and my pc at work are also only sharing the same region
and language settings - and nothing else.

Now the systems:


my PC:

AMD Athlon XP 3000+
GeForce FX 5200
1gb ram

Microsoft Windows XP Home Edition
Version   5.1.2600 Service Pack 1 Build 2600

region: Austria
language german (austria)

work's PC:

somewhere around a P2 600 mhz
no 3d graphics card (will post more specific later)
128 mb ram

a british Windows 2000 (been told so by a guy from our
pc section)
region: Austria
language: german (austria)


If you need further info - ya know where to tell me  :D

:edit - P.S: thanx Spinor too, for at least letting me know
that i shouldn't spend all my time to find the circle slider setup.

~S~ CD
« Last Edit: 07 May 2004, 12:36:05 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Ben-J

  • Guest
Re:Dialog (menus) generator tool
« Reply #54 on: 20 Aug 2004, 02:03:18 »
I've got the same problem, Chris.

When I try to install this Dialog Maker, the setup says to me:

"Setup cannot continue because some system files are out of date on your system. Click OK if you would like setup to update these files for you now. You will need to restart Windows before you can run setup again. Click cancel to exit without updating system files."

I click on "OK" and setup ask me if I want to restart Windows.
I say "Yes" and my computer reboot.

Then, I run the setup again and the same message pops up. ???

It's like the setup hasen't updated the out of date files.

I've tried to install it 4 or 5 times and the same thing happened.

So I've decided to use the ofpdm0.61b_nodlls.zip version and it works perfectly.

But I've got the same problem.
When I try to load a saved OFD file, Dialog Maker freezes and I must close it with a Ctrl-Alt-Del!

Maybe it's VB6 who crashes Dialog Maker because it's not updated.
I've noticed it uses a US version of VB6.

my PC:

INTEL Pentium IV 1500 Mhz
GeForce IV 4200
256 Mb ram

Microsoft Windows ME Home Edition
Version   4.90.300

region: France
language: french

As you can see I'm a Frenchman.

I hopes it will help you.
See ya.


Ben-J

  • Guest
Re:Dialog (menus) generator tool
« Reply #55 on: 20 Aug 2004, 03:40:36 »
I'VE GOT THE SOLUTION !

It's as easy as pie.

It seems that the program cannot load files that are not in the folder where the OFPDialogueMaker.exe is.

I've just copy/past my OFD files in the folder of the OFPDialogueMaker.exe and it works ! :thumbsup:

I think this problem must be fixed or must be written in the readme.txt

Ben-J

  • Guest
Re:Dialog (menus) generator tool
« Reply #56 on: 20 Aug 2004, 04:05:30 »
Hum... sorry.
I've made a mistake.
I must be tired!

Here is the real solution... hum... well I think ...

When you insert a new dialog, the program set the grid size to 0.
But the progam cannot load a dialog with a grid size of 0.
So when creating a new dialog, don't forget to change the grid size!

That's how I've resolved my problem.

I wish it will resolve yours! ;)

Offline ZoRG

  • Members
  • *
Re: Dialog (menus) generator tool
« Reply #57 on: 07 Apr 2008, 06:33:59 »
The program "OFPDialogueMaker" gives out an error at start:


Component 'Comdlg32.ocx' or one of its dependencies not correcrly registered: a file is missing or invalid



How with it to struggle? :dunno:
_______________________
Как-же я заи*ался это все переводить :)) :cool2:

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Dialog (menus) generator tool
« Reply #58 on: 07 Apr 2008, 08:38:10 »
Download Comdlg32.ocx from here.

If I remember correctly you just put the file in the same folder as the dialogmaker exe is.
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline ZoRG

  • Members
  • *
Re: Dialog (menus) generator tool
« Reply #59 on: 07 Apr 2008, 10:50:06 »
Everything, thanks has very much helped :good: