• DermaDesigner
    549 replies, posted
Font size for what?
[QUOTE=yakahughes;22310993]Font size for what?[/QUOTE] DLabels
Yeah, what Heavy said. Sorry for not being clear.
Is that even possible?
Yes it is. If you are coding it, you just use[lua] DLabel:SetFont(fonthere)[/lua]
Ok, I'll work on it and add font setting capabilities [editline]04:53PM[/editline] And everythign supported by Surface.CreateFont
[url]http://wiki.garrysmod.com/?title=Working_with_Fonts[/url] Refer to this page for the list of fonts.
Any other bugs you know of?
[QUOTE=HeavyMtl123;22311197]Yes it is. If you are coding it, you just use[lua] DLabel:SetFont(fonthere)[/lua][/QUOTE] Looking at the wiki page for the DLabel, It doesn't have the SetFont function. I thought it did, but it seems I am wrong.
I'll just test it
Well no, SetFont does not have a wiki page, but it does work [lua] local NoTeamSelected = vgui.Create( "DLabel" ) NoTeamSelected:SetParent(ClassSelect) NoTeamSelected:SetText( "Select a team before you can spawn" ) NoTeamSelected:SetFont( "BudgetLabel" ) NoTeamSelected:SizeToContents() NoTeamSelected:SetPos( ClassSelect:GetWide()/2, 330 ) NoTeamSelected:SetVisible( false )[/lua] Part of the code for my Derma, it uses a different Font to stand out from the rest.
Ok, thanks, ill get too it [editline]05:07PM[/editline] Panel:SetFont is valid and DLabel is a child of Panel [editline]05:17PM[/editline] Wups cant add now, but will add later. Expect possibly a about box with a built in helper in next commit if I am in the mood!
I wish I knew C# so I could help you guys. Anyways, how hard would a DPanelList be? I kinda need a few for some things I'm going to be making.
If I knew C# i'd love to to work on doing the stuff you guys don't have time to do. Well that being said, how long have you been learning C#? And how much would I have to know to help out?
[QUOTE=Map in a box;22311507]Ok, thanks, ill get too it [editline]05:07PM[/editline] Panel:SetFont is valid and DLabel is a child of Panel [editline]05:17PM[/editline] Wups cant add now, but will add later. Expect possibly a about box with a built in helper in next commit if I am in the mood![/QUOTE] Sounds good. I forgot DLabel is a child of Panel.
Found a bug. When you generate the lua code for DNumSlider the text will not be added.
[QUOTE=HeavyMtl123;22318749]If I knew C# i'd love to to work on doing the stuff you guys don't have time to do. Well that being said, how long have you been learning C#? And how much would I have to know to help out?[/QUOTE] Why not just look at examples of Vgui elements people have made
[QUOTE=vexx21322;22317918]I wish I knew C# so I could help you guys. Anyways, how hard would a DPanelList be? I kinda need a few for some things I'm going to be making.[/QUOTE] It's very easy to learn, and DPanelList is going to be slightly hard. [QUOTE=HeavyMtl123;22318749]If I knew C# i'd love to to work on doing the stuff you guys don't have time to do. Well that being said, how long have you been learning C#? And how much would I have to know to help out?[/QUOTE] Learn it, it's not hard. I've been learning it for about 1 - 2 months, but C++ for about 6 months, each for over 6 hours a day. You can get a lot learned in that time. And programming languages are all similar in a lot of concepts, so the more you know, the easier it is to know more. [QUOTE=yuriman;22320614]Found a bug. When you generate the lua code for DNumSlider the text will not be added.[/QUOTE] Fixed, will be in the next release. It's in the SVN now.
Found another bug. when you use DMultiChoice It generates the choices as AddOption instead of AddChoice
Did you get the idea for this Derma Designer from the program used in this video? [URL="http://www.youtube.com/watch?v=wMczD6PNgWo"][media]http://www.youtube.com/watch?v=wMczD6PNgWo[/media][/URL]
[QUOTE=yuriman;22325457]Found another bug. when you use DMultiChoice It generates the choices as AddOption instead of AddChoice[/QUOTE] Fixed. [quote=HeavyMtl123]Did you get the idea for this Derma Designer from the program used in this video?[/quote] That program is Microsoft Visual Studio, almost every .NET programmer uses it, so yeah I guess I kinda did.
I know you have your work cut out for you but here are some items that are not on the list: DAlphaBar DColorCircle DColorCube DHorizontalScroller DNotify DRBGBar DVScrollBar
I hope you add "DModelPanel" to make a menu to select player's model, or something else...
You may want to change the pictures that you use... Garry updated them and I think it is throwing alignment off a little bit.
I wonder how you are going to make DTree work, it'll be interesting to find out :D
can you add [url=http://wiki.garrysmod.com/?title=DCollapsibleCategory]DCollapseableCategory[/url] into the editor and/or add the ability to change the color of the Derma panels?
DCollapsibleCategory will be added eventually, and for a custom colour for the derma panels, you'll have to code a custom Paint function.
Maybe I haven't been reading much but have you been thinking about making peoples able to load Lua files in DermaDesigner? [editline]05:50PM[/editline] And this in DComboBox: [code]whatsoever:SelectMultiple(false)[/code] should be (I think) Else it gives me a error. [code]whatsoever:SetMultiple(false)[/code] [editline]05:55PM[/editline] And in DMultiChoice: [code] whatsoever:AddOption('whatsoever') [/code] Should be (I think again) I get a error for AddOption [code] whatsoever:AddChoice('whatsoever') [/code]
Bumping to keep this thread fresh
Small update[list] [*]Fixed DComboBox using SelectMultiple instead of SetMultiple (thanks Persious) [*]Fixed DMultiChoice using AddOption instead of AddChoice[/list]
Sorry, you need to Log In to post a reply to this thread.