Author Topic: FRED UI Idea/Request  (Read 2633 times)

0 Members and 1 Guest are viewing this topic.

Offline Axem

  • 211
FRED UI Idea/Request
I thought of this while tediously counting through the arguments of warp-effect and create-explosion. Its easy to accidentally edit the wrong argument in "long sexps", so I was wondering if it would be possible to number the sexp arguments. 2 minutes in Photoshop gave me this as an idea.



Would something like this be feasible at all?

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: FRED UI Idea/Request
Brilliant idea.

Unfortunately I have no idea how to go about doing this.  It's probably pretty easy but someone would have to sit down and seriously look at the MFC documentation, which is an exercise in masochism.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED UI Idea/Request
Maybe tooltips would be easier.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
Re: FRED UI Idea/Request
Maybe tooltips would be easier.

As in mouse over the arguement shows what the arguement does, and mouse over the sexp operator shows the entire sexp help text.  That would be way easier if we took the sexp help and threw it into some XML file.  Which would also mean we'd be able to modify it without having to recompile which is a plus.  I don't think what Axem is asking is easily (if at all) possible.  Of course, i wouldn't mind something like intellisense for fred.
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED UI Idea/Request
Actually I was just thinking about the tooltip saying the number for now. I considered having it give the info from the help file but quickly realised that would require completely rewriting how the help file works.

The problem with an XML file is that I, for instance, have at least 3 different versions of FRED in my FS2 folder at any one times (BtRL (which I'll be killing off soon), 3.6.9 CVS and HEAD) All 3 have different lists of SEXPs.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
Re: FRED UI Idea/Request
The problem with an XML file is that I, for instance, have at least 3 different versions of FRED in my FS2 folder at any one times (BtRL (which I'll be killing off soon), 3.6.9 CVS and HEAD) All 3 have different lists of SEXPs.

That really shouldn't matter unless those three versions of fred have different implementations of the same sexp.  Unlikely, but we could add a "version" attribute to the XML entry to say use this xml entry if the fred build is at most or at least the given build number.

The only other issue i would see is actually writing the damn thing ;),  its really easy in C# (XML parsing that is)
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED UI Idea/Request
To be honest I don't see that much point in making it an external file really. It means that there is one more file to take care of and support. You're going to get issues with old XML files and newer FRED builds.

And since you'd have to restructure the FRED help array to make this work anyway it just seems more sensible to me to just keep it internal.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: FRED UI Idea/Request
I thought of this while tediously counting through the arguments of warp-effect and create-explosion. Its easy to accidentally edit the wrong argument in "long sexps", so I was wondering if it would be possible to number the sexp arguments. 2 minutes in Photoshop gave me this as an idea.



Would something like this be feasible at all?

http://fs2source.warpcore.org/exes/latest/C05192007.zip
-C

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED UI Idea/Request
Looks good to me. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Axem

  • 211
Re: FRED UI Idea/Request
Cool. :) The extra box showing the current selection is a nice touch too.

(Though the numbering stops at 15 :p)
« Last Edit: May 19, 2007, 09:11:22 am by Axem »

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: FRED UI Idea/Request
How far do you want them to go?
-C

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED UI Idea/Request
Well I have a send-message-list SEXP in BtRL with 18 messages in it.

So for that to work I'd need 72 at least. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: FRED UI Idea/Request
Infinity?

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: FRED UI Idea/Request
No need to go that far. The limit is INT_MAX anyway. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]