Results 1 to 6 of 6

Thread: [Share] The Gate-Project

  
  1. #1
    Private Dinkleberry's Avatar
    Reputation
    39
    Join Date
    Feb 2012
    Posts
    7

    [Share] The Gate-Project

    The Gate Project

    Gate is a combination of a Clientaddon and a Serverscript. With this strong combination, we can create our own Frames in Serverscripts without change something in your Client (especially the Gate Addon you have to "install" one time).

    What Does Gate Allow You To Do?

    Build Frames, Buttons, Checkboxes, Radioboxes, Editboxes, Textboxes, StatusBars
    Call Ok-Frames, Yes-No-Frames, Input-Frames, and over 150 Blizzard StaticPopups

    The Commands for all these Objects are easy:
    Code:
    YourFrame = CreateFrame("Name")
    YourButton = YourFrame:CreateButton("ButtonName")
    and so on.
    Frames should be Parents of Objects. If you call Create-Functions from an Object, the Object become Parent otherwise, the UIParent would be the Parent.
    Code:
    CreateFrame("Name")
    CreateButton("Name")
    CreateCheckBox("Name")
    CreateCheckButton("Name")
    CreateRadioButton("Name")
    CreateStatusBar("Name")
    CreateEditBox("Name")
    CreateInputBox("Name")
    CreateTextBox("Name")
    CreateInputFrame("Name")
    CreateEditFrame("Name")
    CreateOkFrame("Name")
    All Objects created with standard settings, if you want to change something, you can easily do it like this:
    Code:
    YourButton:SetText("ButtonText")
    YourButton:SetYOffset(50)
    YourFrame:SetWidth(400)
    All Arguments you can set are:
    Code:
    SetText("Text")
    SetWidth(Width)
    SetHeight(Height)
    SetParent("Name")
    SetAlpha(Alpha)
    SetXOffset(XOffset)
    SetYOffset(YOffset)
    SetStatusLink("Name")
    SetEvents("Event", Func)
    	-- Only for Frames
    SetCantClose(true/false)
    SetCantMove(ture/false)
    	-- Only for Check/Radiobuttons
    SetChecked(true/false)
    	--Only for Yes/No-Frame
    SetYes("Text")
    SetNo("Text")
    	-- Only for Statusbar
    MinValue(value)
    MaxValue(value)
    Value(value)
    Countdown(time in sec)
    After, you done all this, you have something like that:
    Code:
    local Frame = CreateFrame("TestFrame")
    local Button = Frame:CreateButton("TestButton")
    local Edit = Frame:CreateEditBox("TextEdit")
    local CB = Frame:CreateCheckBox("TestCB")
    Button:SetText("TestButtonText")
    Button:SetEvent("OnClick", function() print("Event coming") end)
    Edit:SetText("TestText")
    Edit:SetYOffset(20)
    Edit:SetStatusLink("TestButton")
    CB:SetYOffset(-20)
    CB:SetStatusLink("TestButton")
    CB:SetText("TestCB")
    Frame:SetText("TestFrame")
    Frame:Send(Player)
    And by Frame:Send(Player), we trigger the Player. It would look like that:
    wowscrnshot041911161023.jpg

    After all, the Player has the Frame, and we e.g. want to hide the frame:
    Button:Hide(Player)

    All Changecommands are all Settings, we can set with Set-Commands + Show, Hide and ChangeOffset.

    So, I hope, I explain all things, you need.

    Download:


    Client Addon (required by all players): http://luapparc.kilu.de/Gate_Client.zip
    Server Script: http://luapparc.kilu.de/Gate_Server.zip

    Credits:

    -Kenuvis
    Last edited by stoneharry; 02-09-2012 at 07:15 AM. Reason: Approved Attachments.

  2. #2
    Innovation & Emulation
    stoneharry's Avatar
    Reputation
    1084
    Join Date
    Sep 2007
    Location
    Great Britain
    Posts
    3,345
    Blog Entries
    6
    Nice share, an excellent script. +Rep

  3. #3
    Private Dinkleberry's Avatar
    Reputation
    39
    Join Date
    Feb 2012
    Posts
    7
    Thanks. ^_^

  4. #4
    Member
    Reputation
    1
    Join Date
    Feb 2012
    Posts
    11
    i need to learn how to use this...

  5. #5
    Private Dinkleberry's Avatar
    Reputation
    39
    Join Date
    Feb 2012
    Posts
    7
    Quote Originally Posted by iownapc View Post
    i need to learn how to use this...
    Basically, the script you add to your server and all players need to use the addon, then you can use the commands added by this release to create GUI's for players from any other script you create.

  6. #6
    Contributor thebigman's Avatar
    Reputation
    83
    Join Date
    Dec 2008
    Location
    In Your Closet
    Posts
    471
    Blog Entries
    1
    my apologies for necroposting but this doesnt seem to be getting the views it deserves, this could really be something.

    +4 rep, good sir.
    MSN:greenjay333@yahoo.com Contact me for tips or if you think you can teach c++


 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 11:27 AM. Powered by vBulletin® Version 4.1.12
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154