EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Request (https://www.eq2interface.com/forums/forumdisplay.php?f=25)
-   -   button + textbox waypoints? (https://www.eq2interface.com/forums/showthread.php?t=8423)

ObsidianDragon 05-19-2007 03:22 AM

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.

gm9 05-19-2007 11:09 AM

You mean a textbox + button like EQ2map already has? :p

Landiin 05-19-2007 07:33 PM

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&gt;" 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&gt;</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&gt;" 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&gt;</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&gt;" 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&gt;</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&gt;" 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&gt;</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&gt;" 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&gt;</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&gt;" 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&gt;</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..


All times are GMT -5. The time now is 11:07 PM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI