Results 1 to 8 of 8
  1. #1
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default [RELEASE]RGB Color Editor

    This is the new Rgb color editor that can be found in my new upcoming menu!

    Code:
    createProgresBar(color, width, height, xAlign, yAlign, x, y) {
        Bar = self createBar(color, width, height);
        Bar setPoint(xAlign, yAlign, x, y);
        Bar thread destroyOnPlayerDeath(self);
        return Bar;
    }
    destroyOnPlayerDeath(player) {
        player waittill_any_return("death", "close_color_editor");
        self destroyElem();
        self destroy();
    }
    colorEditor(Element) {
        self endon("death");
        self.menuVariable["using_menu"] = false;
        wait 0.1;
        Bar[0] = self createProgresBar((1, 1, 1), 255, 20, "RIGHT", "CENTER", 100, 0);
        Bar[1] = self createProgresBar((1, 1, 1), 255, 20, "RIGHT", "CENTER", 100, 22);
        Bar[2] = self createProgresBar((1, 1, 1), 255, 20, "RIGHT", "CENTER", 100, 44);
        Title = self createFontString("objective", 2.0);
        Title setPoint("RIGHT", "CENTER", 100, -30);
        Title setText("Element: " + Element);
        Title.color = (0, 0, 0);
        Title thread destroyOnPlayerDeath(self);
        Marker = self createFontString("objective", 2.0);
        Marker setPoint("RIGHT", "CENTER", -165, 0);
        Marker setText("+");
        Marker thread destroyOnPlayerDeath(self);
        Instruct = self createFontString("objective", 1.7);
        Instruct setPoint("RIGHT", "CENTER", 100, 66);
        Instruct setText("[{+melee}] Down | [{+frag}]/[{+smoke}] change Value | [{+speed_throw}] Exit");
        Instruct thread destroyOnPlayerDeath(self);
        Value[0] = 0;
        Value[1] = 0;
        Value[2] = 0;
        self.isInColorEditor = true;
        self.currentBar = 0;
        self freezeControls(true);
        while (self.isInColorEditor) {
    	    if (self MeleeButtonPressed()) {
    		    self.currentBar++;
    		    if (self.currentBar >= Bar.size) self.currentBar = 0;
    		    Marker setPoint("RIGHT", "CENTER", -165, Bar[self.currentBar].y);
    		    wait 0.2;
    	    } else if (self FragButtonPressed()) {
    		    Value[self.currentBar]++;
    		    if (Value[self.currentBar] > 255) Value[self.currentBar] = 0;
    		    Bar[self.currentBar] updateBar(Value[self.currentBar] / 255);
    	    } else if (self SecondaryOffHandButtonPressed()) {
    		    Value[self.currentBar]--;
    		    if (Value[self.currentBar] < 0) Value[self.currentBar] = 255;
    		    Bar[self.currentBar] updateBar(Value[self.currentBar] / 255);
    	    } else if (self AdsButtonPressed()) {
    		    self.isInColorEditor = false;
    	    }
    	    wait 0.01;
    	    Title.color = (Value[0] / 255, Value[1] / 255, Value[2] / 255);
        }
        self freezeControls(false);
        self.menuVariable["color"][Element] = (Value[0] / 255, Value[1] / 255, Value[2] / 255);
        self notify("close_color_editor");
    }
    To use make sure you define self.menuVariable["color"][<Element Name>] in onPlayerConnect()
    Also make sure the element your editing sets the color upon creation using that variable.

    More can be found at:
    |
    |
    V

    0 Not allowed! Not allowed!

  2. #2
    Active Member DEUS's Avatar
    Join Date
    Nov 2011
    Location
    Ur WiFi
    Posts
    617
    Points
    1,402
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Location
    Ur WiFi
    Posts
    617
    Points
    1,402

    Default

    You go badass, with FF 13-2 coming out next week
    you are one of the reasons I still touch my Wii.
    :thumbs:

    0 Not allowed! Not allowed!

    Ignorance is contagious. It should be avoided at all times!!

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    77
    Points
    124
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Posts
    77
    Points
    124
    Gamer IDs

    Gamertag: Techy21

    Default

    did IELIITEMODZX make this or is it diff?

    0 Not allowed! Not allowed!

    Go to UndefinedMods For Gametypes and Scripts

  4. #4
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Quote Originally Posted by juniormac21 View Post
    did IELIITEMODZX make this or is it diff?
    He made one, but never released it.
    So I made one. I actually gave Trent the idea when I was a modding "nooby".

    0 Not allowed! Not allowed!

  5. #5
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

    Youtube Channel: http://www.youtube.com/l3g3darymods

    Default

    pretty awesome...keep it up bro

    0 Not allowed! Not allowed!

  6. #6
    Member Fatman999's Avatar
    Join Date
    Apr 2011
    Posts
    336
    Points
    561
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    336
    Points
    561

    Default

    nice code, shame you cant even share with codwii now that you have your own site now but will share with cl. it's whatever tho - not to much of a surprise.

    0 Not allowed! Not allowed!
    Last edited by Fatman999; 01-25-2012 at 07:55 PM.
    http://CoDWii.com - Now building a respectable, mature community for ISO modders.

    [cW] YoY0PwNz

  7. #7
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Quote Originally Posted by Fatman999 View Post
    nice code, shame you cant even share with codwii now that you have your own site now. it's whatever tho - now to much of a surprise.
    Sorry, sites not loading for me.
    I tried posting it a while ago. I'll try again in a bit.

    0 Not allowed! Not allowed!

  8. #8
    Member
    Join Date
    Mar 2011
    Posts
    77
    Points
    124
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Posts
    77
    Points
    124
    Gamer IDs

    Gamertag: Techy21

    Default

    nice work

    0 Not allowed! Not allowed!

    Go to UndefinedMods For Gametypes and Scripts

Bookmarks

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 -10. The time now is 10:20 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.