• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Quick query re server/client interaction

Status
Not open for further replies.

Foereaper

Founder
If you use GATE, then yes, it can. GATE is a client-side addon framework, making you able to code and distribute addons to the client using server side code. If not, you can always use the addon channel and use eluna's OnChat hook to interact with it.

Quoting Kenuvis:

t3khyeje.jpg




8clv3klp.jpg

... Any many more!

Guide:
You had Frame, Button, CheckBox, RadioBox, EditBox, TextBox, StatusBar, Slider, Panel and ListBox as the Basic Objects.Everyone of this can create with CreateFrame, CreateButton and so on.
If you want, that a Object is a Child of another, you do call the create from the Parent-Object.
f = CreateFrame("FrameName")
btn = f:CreateButton("ButtonName)

f:Send(Player1, Player2, Player3, ...) will send the Object and all Childs of it to the Player(s).
Easy? Easy!

Special and prefinished Frames/Objects are: TabbedFrame, Timer, DropDownMenu, CursorKeys, DialogFrame, EditFrame, OKFrame, YesNoFrame, MinimapButton, SlashCommand, Action, KeyBind, Event

Now, you can modify Objects.
All Modification, you call over the Set-Command, like f:SetWidth(200).
The Basic-Modificator are Text, Width, Height, Parent, XOffset, YOffset, Offset, StatusLink, Event, Tooltip, Hidden, FadeIn, FadeOut, Red, Green, Blue, Alpha, Style, Cursor, SafetyStep, Trigger1 to 5.

Only for Frames:
CantClose, CantMove, InfoText, Front, Tabbed, LeaveOpen, Texture

Only for TabbedFrames:
Tab, SelectedTab

Only for Panels:
Border, Background

Only for Buttons:
Texture

Only for EditBox:
MultiLine, MinValue, MaxValue

Only for Radio-/CheckBox:
Checked

Only for YesNoFrames:
Yes[Shown Text], No[Shown Text]

Only for Statusbar/Slider:
MinValue, MaxValue, ValueStep, Value, Countdown, LowText, HighText, AutoReset, Flow, Invert, Vertical, Stop, Start, Runs

Only for Timer:
Countdown, Stop, Start, Runs

Only for Minimapbuttons:
Texture, Degree

Only for DropDownMenus:
DropDownItem(s), SelectedItem

Only for ListBox:
ListBoxItem, Lines, Rows, CanScroll, Margin

Only for InputFrames:
ButtonText, FrameText, DontCloseAfterSend

Only for TextBox:
TextHeight

Only for KeyBind:
Key

With SetEvent, you can set 9 diffent events:
OnClick, OnDoubleClick, OnHide, OnEnter, OnEnterPressed, OnKeyDown, OnEditFocusGained, OnEditFocusLost, OnLeave.

Button:SetEvent("OnClick", function(Object, Player, Event, More) ... end )

For Trigger, you use the same Events. If you do not said, what should trigger, it show/hide. Otherwise, you had FadeIn, FadeOut, Check, UnCheck, Tooltip.
btn1:SetTrigger(btn2, "OnClick") or btn1:SetTrigger(CheckBox, "OnClick", "Check")

So, this is it for the moment. If you had questions, feel free to ask. If you had idea, what Gate should do, say it.

Greeting from Berlin,
Kenuvis

PS: Here is a working Gate Builder with the new Update, but the builder itself wasn't part of the update, so it dont get any new feature and maybe, it has some bugs, but it work: http://www.share-online.biz/dl/R5G1TYOMC6
 

Rochet2

Moderator / Eluna Dev
Sadly the links are broken and Kenuvis hasnt replied to me when I asked if he had it : |
I think I may have gate, but its possibly old version or broken since I edited it for tests.
 
Status
Not open for further replies.
Top