• Question about the new update and Derma.
    7 replies, posted
Can someone give me a complete list of Derma changes? i'm working on converting a derma menu to gmod13 for a DarkRP edit gamemode for a friend of mine. So far, it's all completely done, except for a little niggle i'm having with one of the tabs. The tab im talking about draws the menu to pick your job. Now, The thing seems to be actually making the entire menu, so the code says. I can reference to icons and receive trues on if they exist, etc etc, But they aren't there. I think they may be covered by another panel (They worked before the update, parents were set right and everything) Any suggestions on what i should check? There isn't a single error in the gamemode being spat at me, so it's really hard to fix.
i just did a quick extraction from the changelog so it might be missing some things (not much) but here is a list of derma/panel changes (sorted by element type and in alphabetical order :D) [code] ADDED: Added Button:DoDoubleClick() Added Button:DoMiddleClick() Added Derma Box Selection Added Derma Drag n Drop Added DDrawer control Added DIconBrowser Added DIconLayout Added DLabelEditable Added DMenuBar Added DMenuOptionCVar Added DPanelOverlay vgui control Dbuttons can now be toggle DMenu can specify whether they should be deleted when closed DHTML: Added DHTML:AddFunction( objectname, functionname, function ) Added DHTML:QueueJavascript( js ) Added DHTML:SetAllowLua( bool ) (allows webpage to call Lua via console.output) Added DHTML vgui control DPanelList: Added DPanelList:InsertAfter( before, pnl ) Added DPanelList:InsertBefore( before, pnl ) Added DPanelList:SetAnimEase( f ) Added DPanelList:SetAnimTime( f ) Added DPanelList:SetSortable( b ) DTree: Added DTree:OnNodeSelected( node ) DTreeNode: Added DTreeNode:AddFolder( strName, strFolder, bShowFiles, strWildCard, bDontForceExpandable ) Added DTreeNode:GetName() FIXED: Fixed DButton overriding DLabels SetTextColor settings Fixed Panel Alpha getting reset Panel:SizeToChildren now correctly accounts for padding PANEL: Added Panel:AnimTail() (returns system time that the last animation will stop) Added Panel:CopyBase() Added Panel:Distance( pnl ) Added Panel:DragHoverClick() Added Panel:Find( str ) [finds by name] Added Panel:GetChild( iNum ) Added Panel:GetChildren() Added Panel:GetFont() Added Panel:GetTabbingDisabled() Added Panel:HasHierarchicalFocus() Added Panel:Hide() Added Panel:InvalidateChildren( bRecurse ) Added Panel:IsChild( pPanel ) Added Panel:IsChildHovered( iDepth ) Added Panel:LoadGWENFile( filename, path ) [loads .gwen designer files] Added Panel:LoadGWENString( str ) Added Panel:OnChildRemoved() callback Added Panel:OnDeletion() hook Added Panel:PaintAt( x, y ) Added Panel:Queue() (adds an animation queue point) Added Panel:SetTabbingDisabled( b ) Added Panel:SetWorldClicker() Added Panel:Show() Added Panel:SlideDown( f ) Added Panel:SlideUp( f ) Added Panel:Stop() (stops all animation dead) REMOVED: Removed DSysButton [/code]
So, only one thing got actually removed, and the Dbutton Override and alpha was fixed. Useful, but doesn't explain my strange issue.
ok well you havent really explained what the actual issue is, just that its not working properly. i THINK i know what your problem might be. im assuming you are using a DPropertySheet, so make sure that none of your PropertySheet:AddSheets are pointing to the same panel.
it's hard to explain, because there is no error. It seems as if all the things i try to draw draw behind it's base panel, instead of the other way around. it's not for the whole gamemode, just that section. I wish the thing would just error and tell me what's wrong
ye sounds like the problem i had. sounds like where you are using AddSheet the second parameter (the element) of 2 or more AddSheet's is using the same panel. makes it all weird. you cant click on the tabs properly, nothing was drawing properly etc.
no PropertySheets in the gamemode. Still no luck.
oh, well im out of ideas then sorry :( perhaps it might help if you pasted the code?
Sorry, you need to Log In to post a reply to this thread.