In for DLabels and what ever else may have linebreaks you may want to have it add \n every time a player hits enter (Or something else) instead of it writing it like this...
[lua]Info = vgui.Create('DLabel')
Info:SetPos(15, 475)
Info:SetText('Text here.
Text here.
Text here.')
Info:SizeToContents()[/lua]
I'm not sure but I don't think this works. Something should just be done about it (Unless I'm wrong).
i believe that works too :)
Also maybe make it save the size of the window.
This is soo very helpful!
I just wish DPropertySheet will be done soon.
I added SpawnIcon, it'll be in the next release, it's in the svn now.
Also sooner or later (gotta love that phrase) I'll add an options menu in which you can customise various properties of the designer, such as default size, colour of the menustrip at the top, etc.
Found another bug, but this time with the saving and loading, the text colour of a label will resort back to the grey if you load a saved file.
[QUOTE=vexx21322;22270398]Found another bug, but this time with the saving and loading, the text colour of a label will resort back to the grey if you load a saved file.[/QUOTE]
Ah, that was mentioned before but I didn't see it when I went back to look for bugs to fix. Will be in the next release.
[QUOTE=Aaron113;22265579]In for DLabels and what ever else may have linebreaks you may want to have it add \n every time a player hits enter (Or something else) instead of it writing it like this...
[lua]Info = vgui.Create('DLabel')
Info:SetPos(15, 475)
Info:SetText('Text here.
Text here.
Text here.')
Info:SizeToContents()[/lua]
I'm not sure but I don't think this works. Something should just be done about it (Unless I'm wrong).[/QUOTE]
I doubt it will work. I'll fix it by adding a \n instead of the actual \n.
[editline]hi thar quoter[/editline]
Fixed, giving fix to yaka
[editline]11:39PM[/editline]
Bugs are filling up the forum! You think we can use the Google Code bug tracker?
[editline]11:40PM[/editline]
and yaka is offline, I'll give to Gbps
[editline]11:42PM[/editline]
And Gbps is busy, so, first one I can speak to I'll give fix too.
can you fix so you can load a derma menu from other folders than the program folder?
This is just FUCKING awesome! I wish I had found this earlier.
Ok, I fixed the stupid problem where you couldn't drag files from a different directory on to the executable. It was because I was loading files from paths relative to the startup directory, but dragging a file onto it changed the startup directory, so it couldn't find the files. It'll be in the next release.
So I was right :D
Yaka, i'll ask you here to fix it:
[quote=DLabel.cs]
[code]
@the line that says
code.AppendFormat("{0}:SetText('{1}')\n", this.varname, this.text);
Change to
code.AppendFormat("{0}:SetText('{1}')\n", this.varname, this.text.Replace(Environment.NewLine,"\\n"));
[/code]
[/quote]
Thanks, that'll be added.
[editline]09:09PM[/editline]
Yes you were correct commander, I wouldn't have known how to fix it if you hadn't suggested it.
Hm, can I help with developing?
Of course you can. Download the SVN, keep track of what you modify, and send it to me and if it's a constructive modification, it'll be added.
In other news, I changed the top menustrip to look like the default one for the operating system, which looks way cooler. It'll be in the next update.
This is pretty nice. I understand that this is still in development, but more flexibility on the font may be nice.
fffff I need SpawnIcon's now :S.
[QUOTE=Persious;22306108]fffff I need SpawnIcon's now :S.[/QUOTE]
If you're only looking for a single element surely you can do that yourself?
[QUOTE=Jamie932;22305939]This is pretty nice. I understand that this is still in development, but more flexibility on the font may be nice.[/QUOTE]
I don't understand what you mean.
Updated:[list]
[*]added DSysButton
[*]added SpawnIcon (thanks Map in a box)
[*]fixed lua generation for SetMultiline in DLabel (thanks map in a box)
[*]you can now drag and drop .ddproj files from different directories on the DD executable to open them
[*]made Global set to true on panels in which the variable name contains '.', '[', or ']' (thanks The-Stone)
[*]made the menustrip use the system theme instead of the retarded-looking .NET one[/list]
Ack, I posted this before I uploaded the latest release. One minute...
[editline]07:00PM[/editline]
Done.
You saved my day.
[editline]08:24PM[/editline]
[QUOTE=SnakeFace;22306284]If you're only looking for a single element surely you can doe that yourself?[/QUOTE]
Yeah, I can, but I'm kinda lazy.
I'm getting a fatal error now ever since I SVN Updated it
[IMG]http://i48.tinypic.com/23u4jg7.png[/IMG]
[editline]08:54PM[/editline]
Oh, no worries, running the Derma Designer Updater fixed it.
If you guys didn't know you do realize you can go here to get a list of functions you use...[b][url=http://wiki.garrysmod.com/?title=Derma_Controls]Derma Controls [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
It will be a big help when making each of these instead of doing it off memory.
It would be better if you could include the types of DSysButton along with it, such as right arrow, left arrow, down arrow, up arrow and whatnot.
[QUOTE=Aaron113;22308407]If you guys didn't know you do realize you can go here to get a list of functions you use...[b][url=http://wiki.garrysmod.com/?title=Derma_Controls]Derma Controls [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
It will be a big help when making each of these instead of doing it off memory.[/QUOTE]
That's what they're using.
[QUOTE=HeavyMtl123;22308544]It would be better if you could include the types of DSysButton along with it, such as right arrow, left arrow, down arrow, up arrow and whatnot.[/QUOTE]
Those are included.
You can set UseDisplayType to true and set DisplayType to the type you want (up, down, close, etc), or you can set UseDisplayType to false and type the characters you want it to show yourself in the Text property.
Ah, I did not see that! thankyou
This is not a big deal but when you have something unaligned to the grid and then apply the grid you have to move the section over two and then back one to get it to snap to the closest line to the original position.
I don't think I explained that very well. Oh well, see what you can do when you get to it.
[QUOTE=yakahughes;22306601]I don't understand what you mean.[/QUOTE]
As in, allow us to change the font, size e.g.
Sorry, you need to Log In to post a reply to this thread.