![]() |
Group Addon question
Hy all :)
I was thinking to make 3 smalls button on the bottom left of the group windows option like : I = for Invite my target D = to /disband S = to /follow Is there a way to assign at a ButtonStyles a command like /follow or /disband ? Also have them show only if i have one personne on the group ,) Thanks for your reply |
yes that is possible.
Just put the buttons in the MemberInfoPage Page that is inside the GroupMember1 page then they will only show when you have at least 1 person that is in your group. |
yes so the probleme is how to affect a online command like /disband on a button ? i have search on all default xml files and haven't seen somethings like ButtonStyle.disband.style
|
OnPress="/disband"
etc. You don't actually need the /, but I always put it so I remember it's a / command. Quib |
1 Attachment(s)
Am slowly implementing this idea into my group window. Need to decide what buttons to have in each area.
Probably the invite button wherever the search for players button is, and disband starting with each page after you get at least 1 group member. If I can detect whether or not I'm group leader, I might be able to add a makeleader button. Quib |
Yesterday i have tried to search for a button just to show a letter D,I,F but the problem is that much of all of them are to big to take a size like 20,20. There are 2 solutions, maybe trying to find a buttonStyle (if i understand how the code go looking on dds files to assign a name on a squared draw) or directly change the LFG and FIND button to match with all we need to make the new group UI. The most approaching button is ButtonStyle.text.style (i think it's the name) it's the one that is used on most UI to put text on it (like the tradeskill window) but is size must me near 30 in height to have the border showing on UI.
How have you made your I button ? it's look nice :D I'm going to test with that kind of button or maybe someone have a idea of a buttonstyle that can be smaller than this one :) For your problem, i was thinking, if you create a page Visible=False which contain your Makeleader button maybe it will be only show if you are the leader no ? When you look on the Loot page you see that button LeaderAssign seems by default Visible=False. Something maybe i'm wrong, when you look on the Popup > GroupOptions you see a page Named DataPage with 2 DEVL test named LootMethodSource & LootMethodSource maybe that 2 test can be a True or False that influct on the rest of the page ? |
if most are too big you could hijack a close button or something and put whatever image on top of that...
Either way, Stretch=true can be good for the heart if you dont want to make one from scratch :) -Selae |
I made my I button all with xml, no new graphics. I made a new button style, that's basically a copy of the checkbox style the LFG button uses, and put an I on top of it that hides the exclamation point. Here's the code for the new style.
Code:
<ButtonStyle DisabledTextColor="#A0A0A0" MouseOverTextColor="#000000" MouseOverTextShadowStyle="DoublePeachOutlineNoShadow.Outline1" Name="style" NormalTextColor="#EBDEAA" NormalTextShadowStyle="DoubleBlackOutlineNoShadow.Outline1" NormalTextStyle="/Fonts.FontZapf20" RStyleActivated="activated_rect" RStyleDefault="normal_rect" RStyleMouseOver="mouseover_rect" TextAlignment="Center"/>Code:
<Button BackgroundColor="#FFFFFF" LocalText="I" LocalTooltip="/invite" Location="6,36" Name="Invite" ScrollExtent="31,20" Size="31,20" Style="style" Tooltip="/invite" OnPress="/invite">I</Button>Quib |
omg if i understand well, you have drawn all points to make a I ? :eek:
|
Quote:
What you're seeing is 2 shadow styles to put a black border around the I for the default style and a peach-ish border around the I when you hold the mouse over the button. Quib |
:p was looking at the first file and imagine the work i hade to do ^^
So i just put only one button style at the bottom of my eq2ui_mainhud_groupmembers.xml page and put as much Button for each letter i want to use. Ok i'm going to test it, thanks so much Quib :o |
Done, Thanks Quib for the button and all his helps :)
Version with a Disband and Invit buttons, next version i will put the Follow one. You can download and view the mod HERE Comments and wish add are welcome to improve it, don't hesitate to ask :) |
| All times are GMT -5. The time now is 09:08 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI