[Release] Anik's GUI Editor

Started by Anik, May 01, 2017, 07:44 AM

Previous topic - Next topic

Anik

GUI Editor - Vice City Multiplayer

Hello guys, I am presenting you my GUI Editor. Which gives you the opportunity to edit GUIElements in game. Which will save a lot of time.
This gui editor will also output the code so you can easily copy and paste them into your script!

Interaction with Editor

Its easy make sure you read this carefully, the editor is really user-friendly and takes you no time to learn.

You can move your element by holding CTRL key and moving your mouse. And hold RMB and move mouse to resize your element.

Everything updates instantly to other players. So many players can edit a project at a time


Project Management:-
  • newproject [ Name ] - Creates a new project with the name provided
  • saveproject - Saves the currently opened project.
  • loadproject [ Name ] - Loads a map
  • exportproject - Export the project, outputs code on /scripts/Client Script/.
  • closeproject - Close any opened project
  • project - Tells you which map is currently being worked on.
  • elements - Tells you all elements created on current project.

Elements Management:-
  • addlabel [ name ] [ text ] - Creates a label
  • addwindow[ name ] [ text ] - Creates a Window
  • addbutton[ name ] [ text ] - Creates a button

Player Keys:-
  • C - Switch between R|G|B while colour mode is on.
  • PAGE UP | PAGE DOWN - Increase | Decrease Font Size - Change R | G | B
  • CTRL - Enable positioning mode! Hold CTRL and move mouse to change positon of your element
  • RMB- Enable Resize mode! Hold RMB and move mouse to change size of your element
  • Backspace / Click any where in the game - Stop controlling an element.
  • Element can be selected by clicking it once.

Outputs:-
Once finished creating a project and its time for you to use it. You can use the export command as mentioned above. After you see the message that the project has been outputted successfully, you can go into /scripts/Client Script/ and here you will find a .nut file with the same name as your project with all the codes inside.

Credits:-

Download Latest Version:-



[Spoiler=ARCHIVE - OLD VERSIONS]
v1.0


v1.1

[/Spoiler]

Changelog:-

-    Changelog - v1.1
-    ► Fixed AddChild bug.
-    ► Fixed the game crash while adding child.

The Video explains everything. How to use it :-
https://www.youtube.com/watch?v=g2W-ueXB7is#

How to install the editor :-
https://www.youtube.com/watch?v=WdLW1X3vWlI&feature=youtu.be#

Fun Fact:
When Doom released his Map editor that was his 300th post. And now I am releasing GUI Editor. Its also my 300th post :P :P

~ Happy Editing!
~ 300th post!
~ Regards, Anik!

Zone_Killer

Bohemia Is God Of Punjabi Rap
Yo Yo Honey Singh tou chutiya hai

DizzasTeR

Nice work :) I'd say this is more than enough for VCMP with its current situation and limitations.

luchgox

Good Job,its so useful bro thank you so much!
Can i load editer.nut by putting: dofile("scripts/editor.nut")? on  ScriptLoad?
Strength does not come from wining.Your struggles develop your strengths.

Casper


Anik

#5
Quote from: UFt.LuchGox on May 01, 2017, 08:10 AMGood Job,its so useful bro thank you so much!
Can i load editer.nut by putting: dofile("scripts/editor.nut")? on  ScriptLoad?
I have given server.cfg file along with it. You need to put plugins and server file to it.

Server - http://forum.vc-mp.org/?topic=3352.0

Plugins - http://v04.thijn.ovh/allplugins_04rel004_patch7.7z

:edit:
How to install the editor :-
https://www.youtube.com/watch?v=WdLW1X3vWlI&feature=youtu.be#

Anik

Quote from: [MDt]Casper on May 01, 2017, 08:43 AMgood job
Quote from: Zone_Killer on May 01, 2017, 08:07 AMGood Job!!!!! 8)
Quote from: Doom_Kill3R on May 01, 2017, 08:09 AMNice work :) I'd say this is more than enough for VCMP with its current situation and limitations.

Thanks Everyone. Feel free to report about the bugs and glitches.

Anik

:edit: I forgot to add the client sided script to the zip file. Link UPDATED.


KrlozZ...

Wow awesomw work!
just with read it all make me anxious to use it OmO.

I will tes it when i get in my laptop as my pc sux in gui v.v

Keep it up, all your works are really nice :)

luchgox

Strength does not come from wining.Your struggles develop your strengths.

EK.IceFlake

Quote from: UFt.LuchGox on May 01, 2017, 11:27 AM



[more]
Please. We don't want to start this again.
There is clearly a 225 error on the console. Which means that the error is not even remotely related to this topic.

Anik

Quote from: KrlozZ... on May 01, 2017, 10:31 AMWow awesomw work!
just with read it all make me anxious to use it OmO.

I will test it when i get in my laptop as my pc sux in gui v.v

Keep it up, all your works are really nice :)
Thanks mate.

!

#12
Great work @Anik

   +

Found a bug:-
>Create a window & label.
>Make label child of window.
>Now close the project.
>Now load the project again, the label will not be child of window.

Solution Don't know if it's the correct one.Yet not checked full script :P :)
I think you forget to add
ChildAdd( str );to script_mem.nut line 113.
case 5: //Addchild
local data = split( str, ":" ), int = data[0].tointeger(), intt = data[1].tointeger();
::CurrentElement = intt;
pData.PositionMode = true;
pData.Editing = true;
break;

 :edit:
Another bug
>Create a window
>Now create another window.
>Now make the first window(ID:1) child of second window(ID:2)

Booom game crashes :'(

Discord: zeus#5155

Sebastian

Sounds too good to be true. :D
Wish you the best ! I like your motivation.

Anik

Quote from: zeus on May 02, 2017, 04:00 PMGreat work @Anik

   +

Found a bug:-
>Create a window & label.
>Make label child of window.
>Now close the project.
>Now load the project again, the label will not be child of window.

Solution Don't know if it's the correct one.Yet not checked full script :P :)
I think you forget to add
ChildAdd( str );to script_mem.nut line 113.
case 5: //Addchild
local data = split( str, ":" ), int = data[0].tointeger(), intt = data[1].tointeger();
::CurrentElement = intt;
pData.PositionMode = true;
pData.Editing = true;
break;

 :edit:
Another bug
>Create a window
>Now create another window.
>Now make the first window(ID:1) child of second window(ID:2)

Booom game crashes :'(

Thanks for reporting the bug. But that's not the reason of the bug. Btw fixed both of the bugs.

Fixed Version