|
05-19-2007, 03:22 AM
|
A Berserk Golem
|
|
Join Date: Aug 2005
Server: Oasis
Posts: 57
|
|
button + textbox waypoints?
It would be lovely to have a waypoints window that was just a half dozen text boxes with 'go' buttons next to them so you could paste in waypoints and click the button to command a "/waypoint " with the text appended.
Thanks in advance to anyone willing to attempt this, if it's feasible. Sadly my ancient VB skills don't help me at all trying to figure out the syntax of EQ2's xml files - no idea at all how to make a button press do a command that is part literal string and part value reference.
|
05-19-2007, 11:09 AM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
You mean a textbox + button like EQ2map already has?
|
05-19-2007, 07:33 PM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
Here you go.
Add to to your eq2ui_mainhud.xml file
Code:
<included>eq2ui_mainhud_waypointfinder.xml</include>
Copy and past in a new file, save as eq2ui_mainhud_waypointfinder.xml using UTF8 in your custom UI directory.
Code:
<?xml version="1.0" encoding="utf-8"?>
<Page Location="262,142" Name="WayPointFinder" ScrollExtent="174,188" Size="174,188">
<Page Name="Waypoint0" ScrollExtent="174,36" Size="174,36">
<Button LocalText="GO>" Location="133,3" MaximumSize="16384,32" MinimumSize="32,32" Name="Go" OnPress="waypoint Parent.Location.LocalText" ScrollExtent="38,32" Size="38,32" Style="PushButton.data.style">GO></Button>
<Textbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Cursor="/Cursor.Text" Location="4,4" MaximumSize="16384,30" MinimumSize="30,30" Name="Location" RStyleActivated="Textfield.data.selected.rect" RStyleDefault="Textfield.data.default.rect" RStyleDisabled="Textfield.data.disabled.rect" RStyleDisabledActivated="Textfield.data.disabled.rect" RStyleMouseOver="Textfield.data.mouseover.rect" RStyleMouseOverActivated="Textfield.data.selected.rect" RStyleMouseOverSelected="Textfield.data.selected.rect" RStyleSelected="Textfield.data.selected.rect" ScrollExtent="130,30" Size="130,30" Style="Textfield.data.style"></Textbox>
</Page>
<Page Location="0,30" Name="Waypoint1" ScrollExtent="174,36" Size="174,36">
<Button LocalText="GO>" Location="133,3" MaximumSize="16384,32" MinimumSize="32,32" Name="Go" OnPress="waypoint Parent.Location.LocalText" ScrollExtent="38,32" Size="38,32" Style="PushButton.data.style">GO></Button>
<Textbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Cursor="/Cursor.Text" Location="4,4" MaximumSize="16384,30" MinimumSize="30,30" Name="Location" RStyleActivated="Textfield.data.selected.rect" RStyleDefault="Textfield.data.default.rect" RStyleDisabled="Textfield.data.disabled.rect" RStyleDisabledActivated="Textfield.data.disabled.rect" RStyleMouseOver="Textfield.data.mouseover.rect" RStyleMouseOverActivated="Textfield.data.selected.rect" RStyleMouseOverSelected="Textfield.data.selected.rect" RStyleSelected="Textfield.data.selected.rect" ScrollExtent="130,30" Size="130,30" Style="Textfield.data.style"></Textbox>
</Page>
<Page Location="0,60" Name="Waypoint2" ScrollExtent="174,36" Size="174,36">
<Button LocalText="GO>" Location="133,3" MaximumSize="16384,32" MinimumSize="32,32" Name="Go" OnPress="waypoint Parent.Location.LocalText" ScrollExtent="38,32" Size="38,32" Style="PushButton.data.style">GO></Button>
<Textbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Cursor="/Cursor.Text" Location="4,4" MaximumSize="16384,30" MinimumSize="30,30" Name="Location" RStyleActivated="Textfield.data.selected.rect" RStyleDefault="Textfield.data.default.rect" RStyleDisabled="Textfield.data.disabled.rect" RStyleDisabledActivated="Textfield.data.disabled.rect" RStyleMouseOver="Textfield.data.mouseover.rect" RStyleMouseOverActivated="Textfield.data.selected.rect" RStyleMouseOverSelected="Textfield.data.selected.rect" RStyleSelected="Textfield.data.selected.rect" ScrollExtent="130,30" Size="130,30" Style="Textfield.data.style"></Textbox>
</Page>
<Page Location="0,90" Name="Waypoint3" ScrollExtent="174,36" Size="174,36">
<Button LocalText="GO>" Location="133,3" MaximumSize="16384,32" MinimumSize="32,32" Name="Go" OnPress="waypoint Parent.Location.LocalText" ScrollExtent="38,32" Size="38,32" Style="PushButton.data.style">GO></Button>
<Textbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Cursor="/Cursor.Text" Location="4,4" MaximumSize="16384,30" MinimumSize="30,30" Name="Location" RStyleActivated="Textfield.data.selected.rect" RStyleDefault="Textfield.data.default.rect" RStyleDisabled="Textfield.data.disabled.rect" RStyleDisabledActivated="Textfield.data.disabled.rect" RStyleMouseOver="Textfield.data.mouseover.rect" RStyleMouseOverActivated="Textfield.data.selected.rect" RStyleMouseOverSelected="Textfield.data.selected.rect" RStyleSelected="Textfield.data.selected.rect" ScrollExtent="130,30" Size="130,30" Style="Textfield.data.style"></Textbox>
</Page>
<Page Location="0,119" Name="Waypoint4" ScrollExtent="174,36" Size="174,36">
<Button LocalText="GO>" Location="133,3" MaximumSize="16384,32" MinimumSize="32,32" Name="Go" OnPress="waypoint Parent.Location.LocalText" ScrollExtent="38,32" Size="38,32" Style="PushButton.data.style">GO></Button>
<Textbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Cursor="/Cursor.Text" Location="4,4" MaximumSize="16384,30" MinimumSize="30,30" Name="Location" RStyleActivated="Textfield.data.selected.rect" RStyleDefault="Textfield.data.default.rect" RStyleDisabled="Textfield.data.disabled.rect" RStyleDisabledActivated="Textfield.data.disabled.rect" RStyleMouseOver="Textfield.data.mouseover.rect" RStyleMouseOverActivated="Textfield.data.selected.rect" RStyleMouseOverSelected="Textfield.data.selected.rect" RStyleSelected="Textfield.data.selected.rect" ScrollExtent="130,30" Size="130,30" Style="Textfield.data.style"></Textbox>
</Page>
<Page Location="0,149" Name="Waypoint5" ScrollExtent="174,36" Size="174,36">
<Button LocalText="GO>" Location="133,3" MaximumSize="16384,32" MinimumSize="32,32" Name="Go" OnPress="waypoint Parent.Location.LocalText" ScrollExtent="38,32" Size="38,32" Style="PushButton.data.style">GO></Button>
<Textbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Cursor="/Cursor.Text" Location="4,4" MaximumSize="16384,30" MinimumSize="30,30" Name="Location" RStyleActivated="Textfield.data.selected.rect" RStyleDefault="Textfield.data.default.rect" RStyleDisabled="Textfield.data.disabled.rect" RStyleDisabledActivated="Textfield.data.disabled.rect" RStyleMouseOver="Textfield.data.mouseover.rect" RStyleMouseOverActivated="Textfield.data.selected.rect" RStyleMouseOverSelected="Textfield.data.selected.rect" RStyleSelected="Textfield.data.selected.rect" ScrollExtent="130,30" Size="130,30" Style="Textfield.data.style"></Textbox>
</Page>
<Page BackgroundOpacity="1.000" Location="14,47" Name="bkg" PackSize="absolute,absolute" PackSizeProp="0029/0001,0104/0001" RStyleDefault="/CommonElements.RoundedGrouper.data.rect" ScrollExtent="219,315" Size="219,315"/><Page AbsorbsInput="false" Name="WindowFrame" PackSize="absolute,absolute" PackSizeProp="0000/0001,0000/0001" ScrollExtent="248,419" Size="248,419"/>
</Page>
In game use /show_window MainHud_WayPointFinder to view the page.
Disclaimer: Never tested I just whipped it up for ya..
Last edited by Landiin : 05-19-2007 at 07:40 PM.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:35 AM.
|
|