EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Interface Discussion > Pre-Beta

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-02-2008, 10:40 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default Drop in startmenu mod

Well, based on a suggestion from the wish list post I made, I've been tinkering with a startmenu mod that would allow authors to include a menuitem_#.xml file with their mod to add an entry.

It uses a Composite so all the menuitems will slide up to the top. Up to 18 can be accommodated. I figure that will likely be more than anybody will ever need. (Otherwise, another column can be added for an additional 18 without too much effort).

Is this something that others would be interested in? Would you as an author want to include a file in your .zip that would add it to the startmenu? If so, any suggestions on the best way to package this? Mods will need to be given specific entry numbers just like the eq2map plugin system. How is that administered?

Thanks in advance for the suggestions, I've attached a picture of the progress.

A couple sample drop ins below. All that needs to be changed is the Name, the OnPress, and the Icon.

This would open the Spires popup mod:
Code:
<?xml version="1.0" encoding="utf-8"?>
    <Page Name="Spires" ScrollExtent="166,28" Size="166,28">
        <Button Location="28,0" Margin="10,0,0,0" Name="menuButton" OnPress="show_window Custom.Pooka_Spires ;togglestartmenu" PressSound=" " ScrollExtent="138,28" Size="138,28" Style="/ButtonStyles.start_menu">Spires</Button>
        <Page BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Name="IconFrame" Opacity="0.500" RStyleDefault="/FrameStyles.single_pixel" ScrollExtent="28,28" Size="28,28" />
        <Image Name="icon" ScrollExtent="28,28" Size="28,28" SourceRect="209,84,250,126" SourceResource="images/icons/icon_ss21.dds" />
    </Page>
This would cast whatever call you have:
Code:
<?xml version="1.0" encoding="utf-8"?>
    <Page Name="CallHome" ScrollExtent="166,28" Size="166,28">
        <Button Location="28,0" Margin="10,0,0,0" Name="menuButton" OnPress="useability Call of the Overlord ; useability Call of Kelethin ;useability Call of Qeynos ;useability Call of Neriak ;useability Call of Gorowyn ;useability Call of Haven ;togglestartmenu" PressSound=" " ScrollExtent="138,28" Size="138,28" Style="/ButtonStyles.start_menu">Call Home</Button>
        <Page BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Name="IconFrame" Opacity="0.500" RStyleDefault="/FrameStyles.single_pixel" ScrollExtent="28,28" Size="28,28" />
        <Image Name="icon" ScrollExtent="28,28" Size="28,28" SourceRect="83,85,124,127" SourceResource="images/icons/icon_as11.dds" />
    </Page>
Attached Thumbnails
Click image for larger version

Name:	start menu.jpg
Views:	953
Size:	49.1 KB
ID:	6338  
Reply With Quote
  #2  
Unread 03-02-2008, 11:11 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Send a message via AIM to dragowulf Send a message via MSN to dragowulf
Default

I for one think this is a very unique idea. I haven't looked at the code yet, but from what you've said it sounds like something I personally would use if I had custom windows like such.

I'll check it out and tell you what I think.
__________________
May Jesus Have Mercy On Us

Last edited by dragowulf : 03-02-2008 at 11:23 PM.
Reply With Quote
  #3  
Unread 03-02-2008, 11:24 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Send a message via AIM to dragowulf Send a message via MSN to dragowulf
Default

I like it. Very easy, anyone could use it.

I suggest looking at some of the EQ2Map plugin code to get more of a glimpse to see how some of it works.
__________________
May Jesus Have Mercy On Us
Reply With Quote
  #4  
Unread 03-03-2008, 02:52 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Nice pooka, this is what I was suggesting. If it becomes necessary I think you could even add more than 18 includes for the same column and just assume that no user is really going to install more than 18 different start menu mods, which I think is a pretty safe assumption.

I will support this plugin format if I ever add a startmenu mod. Maybe call the plugin files eq2ui_custom_startmenu_plugin_#.xml?

Regarding administration, the eq2map plugins are self administered, ie mod authors checked which plugins are out there and used a free number. For the present system you could make a post attaching sample files and a section listing the plugin numbers and "registering" them to specific mods. I would not mind stickying that in UI Developer Discussion.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 03-03-2008 at 08:42 AM. Reason: second last sentence was missing some words :p
Reply With Quote
  #5  
Unread 03-03-2008, 03:37 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Send a message via AIM to Drumstix42 Send a message via MSN to Drumstix42 Send a message via Yahoo to Drumstix42
Default

Looks good. I'd suggest only formatting the text to not be so close to the icons (like default).

/perfectionist off
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #6  
Unread 03-03-2008, 07:09 AM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

GM9: Great! I'll clean it up and submit it tonight. As far as more than 18 includes, that makes a lot of sense. I'll try it and see what happens if someone happens to run over.

Drumstix42: LOL I noticed that too. I have to thank Valdacil as his startmenu mod for infocenter is part of what got me thinking about this. I grabbed his code and there was a margin= line left out. It's fixed now.
Reply With Quote
  #7  
Unread 03-03-2008, 09:37 AM
Valdacil Valdacil is offline
A Mist Grinnin
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 75
Default

I appreciate the shout out on the credit, however, I don't want to take credit where credit is due. "My" startmenu mod is really Milquetowst with a single word edited to make DrumsUI Infocenter come up instead of Milquetowst's. DBurgdorf is the original author of the code.
Reply With Quote
  #8  
Unread 03-03-2008, 12:26 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

I'll just have to thank everyone, at length. Think thanking Blackguard is going too far?

...

On another note, should the release package be just the modded eq2ui_startmenu.xml file and each menu item be a seperate downloadable addon? I can easily include 3 or 4 sample drop-ins. Should they be included in the zip? I'm trying to figure out what will be best in general.

The startmenu file itself is tiny, so long as its format isn't changed overly much, it could actually be included in any mod that wanted to use the functionality. Overwriting the previous version won't matter because the individual drop-ins are seperate. Would that be better than making users find and download a seperate mod to have the functionality available?

Suggestions please.
Reply With Quote
  #9  
Unread 03-03-2008, 12:50 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Hmm, what I wanted to sticky was the info for the plugin system we are trying to "standardize" here. It will not be necessary to use your modded startmenu.xml or specific plugins, eg. if I modded the start menu I would probably make my own startmenu, but provide the includes for additional plugins according to the standard.

I was thinking more of a post like the first post in this thread, only that you also explained the startmenu format (ie. that it has to have the <include> lines), possibly by just posting your mod as an example.

Anybody including you that wants to make plugins available should then upload them as normal downloads and either also put a compatible startmenu.xml in the package or maybe just link to yours (assuming you will upload yours as well).

So the sticky post remains for ui authors only, while functioning plugins remain in userspace with their separate support threads. Acceptable?
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #10  
Unread 03-03-2008, 03:30 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Send a message via AIM to Drumstix42 Send a message via MSN to Drumstix42 Send a message via Yahoo to Drumstix42
Default

We should request a property to be set in the top level page that would auto put a window in the start menu
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #11  
Unread 03-03-2008, 04:17 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

Hmm. I may need to rework this some with the goal in mind to make a standard, the formatting should come from the startmenu more than the menuitems. I may be able to trim it down so the menuitem files only need the name, icon, and effect text. This would allow wildly different layouts to accomodate the same menuitems.

Drumstix42: LOL That was how this whole thing got started.
Reply With Quote
  #12  
Unread 03-03-2008, 04:20 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Send a message via ICQ to Landiin Send a message via AIM to Landiin Send a message via MSN to Landiin Send a message via Yahoo to Landiin
Default

Good Idea but really it clutters up the start menu. What you need to do is, make it like program files menu for windows start button.

Make one button that shows up on the menu as "custom buttons" or what ever. When you hover over this it opens a window that is included in the eq2_custom.xml file that holds all the custom buttons.

Thats just my opinion if your going to go forward with this project.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #13  
Unread 03-03-2008, 04:52 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by pooka View Post
Hmm. I may need to rework this some with the goal in mind to make a standard, the formatting should come from the startmenu more than the menuitems. I may be able to trim it down so the menuitem files only need the name, icon, and effect text. This would allow wildly different layouts to accomodate the same menuitems.
Yes I had thought about that but I fear this would make it rather complex. If mod authors really want to change the layout they could always script that OnShow of their start menu.

Alternatively you can require mod authors to use scripting and strip the plugins down to the bare minimum, namely something like this:

<Data MenuText="gm9's plugin" MenuAction="camp desktop" IconSource="cool_image.dds" IconSourceRect="1,10,1,10"/>

Makes it more difficult than most people will care though I guess.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #14  
Unread 03-05-2008, 07:51 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

Some part of me likes the idea of the simpler style. I redid the mod to accommodate, and you're absolutely right, GM9. It is complicated, perhaps overly so. I'm attaching what I've got so far.

While it works, there are likely easier ways to do it. Some explanations:
1. The visible=false visible=true lines are my current best attempt to force the variables from the plugins to load. It's not necessary with the other drop in style.
2. The odd conditional is to hide missing menu entries.
3. It seems that semi-colon ";" breaks the variables so they're on different lines in the drop-ins.

Is it worth it to go with this method or better to revert to the other style?

I appreciate everybody's help and suggestions thus far. You're a great bunch.

Oh, and Landiin, it'll be possible to do exactly what you're suggesting.
Attached Files
File Type: zip dropin_startmenu_beta.zip (3.1 KB, 801 views)

Last edited by pooka : 03-05-2008 at 07:52 PM. Reason: silly semi-colon ;)
Reply With Quote
  #15  
Unread 03-05-2008, 08:12 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Send a message via AIM to dragowulf Send a message via MSN to dragowulf
Default

Landiin's idea is good because he is right, we don't want an overly huge, and cluttered start menu.

Quote:
Originally Posted by pooka View Post
Some part of me likes the idea of the simpler style. I redid the mod to accommodate, and you're absolutely right, GM9. It is complicated, perhaps overly so. I'm attaching what I've got so far.

While it works, there are likely easier ways to do it. Some explanations:
1. The visible=false visible=true lines are my current best attempt to force the variables from the plugins to load. It's not necessary with the other drop in style.
2. The odd conditional is to hide missing menu entries.
3. It seems that semi-colon ";" breaks the variables so they're on different lines in the drop-ins.

Is it worth it to go with this method or better to revert to the other style?

I appreciate everybody's help and suggestions thus far. You're a great bunch.

Oh, and Landiin, it'll be possible to do exactly what you're suggesting.
__________________
May Jesus Have Mercy On Us
Reply With Quote
  #16  
Unread 03-05-2008, 08:32 PM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

I don't disagree with either of you.

Part of this process is to come up with a standard format for a startmenu entry drop in. Authors will be able to create their own versions of the startmenu that use those entries as well as create entries of their own.

The final look of the startmenu will be up to the individual mod author. I don't mind a double row startmenu myself, but once we've got the underlying code format down, I'll make sure to do a version that can be shown via an extra button in the startmenu.
Reply With Quote
  #17  
Unread 03-06-2008, 02:49 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

After a very quick look at your code, the following comments:

- No reason to put the "togglestartmenu" into every plugin, just add that to the startmenu xml itself.
- Your visible=false/true code can be discarded if you control the visibility of the menuitems from the OnShow of the startmenu's root page
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #18  
Unread 03-06-2008, 07:20 AM
pooka's Avatar
pooka pooka is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
Default

I think I need help with both these points. LOL Thank you for all your help with this.

To add togglestartmenu to each entry, I've tried variations of the following, but apparently not the right one. Everything I've tried breaks it in one way or another. Is there a way to escape a semi-colon?
Code:
menuButton.OnPress=('togglestartmenu')##(' ')##(MenuEntry.menuaction)
I'm not sure I understand the second part either (see what happens when you let a non-programmer near code?). I am using OnShow in startmenu's root page, to force all the menuitems to update their variables. Then I have a conditional in each one to actual show/hide them if there exists a plugin for their #'d slot. The conditional (and the variable substitution) won't fire without the first part.

Quote:
Originally Posted by gm9 View Post
- No reason to put the "togglestartmenu" into every plugin, just add that to the startmenu xml itself.
- Your visible=false/true code can be discarded if you control the visibility of the menuitems from the OnShow of the startmenu's root page
Reply With Quote
  #19  
Unread 03-06-2008, 07:48 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

I'll have to admit my second point was rather unclear. I meant you should put the conditional code directly into the OnShow of the root.

There is no need to escape a semi-colon, I do not think it has any reserved meaning in a value (which also means you have no need to use it). I usually separate commands via line breaks. This should work:

menuButton.OnPress=(MenuEntry.menuaction) ## '&#xA;togglestartmenu'
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:12 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI