I made this derma menu with tabs and i used sethtml for both tabs and the html code in one of the tabs displays the same on the other tab. so whatever code is on the first tab with the html is the same on the second tab with diffrent html.. i have been trying for SO fucking long to try fix this stupid problem but i never found a way. so please can someone tell me whats causing this??
[lua]
local FrameColor = Color(0, 0, 0, 0) --You can set your own frame color, remember to decrease the alpha value.
local ButtonColor = Color(0, 0, 0, 0) --You can set your own button color, remember to decrease the alpha value.
function OpenMOTDMenu()
local MenuFrame = vgui.Create("DFrame")
MenuFrame.OPaint = MenuFrame.Paint
MenuFrame:SetSize(ScrW() * 0.95, ScrH() * 0.95)
MenuFrame:SetPos((ScrW() - MenuFrame:GetWide()) / 2, (ScrH() - MenuFrame:GetTall()) / 2)
MenuFrame:SetTitle("Welcome to DarkRP server!")
MenuFrame:SetVisible(true)
MenuFrame:SetDraggable(true)
MenuFrame:ShowCloseButton(true)
MenuFrame.Paint = function()
MenuFrame.OPaint(MenuFrame)
surface.SetDrawColor(Color(60, 60, 60, 255))
surface.DrawLine(1, MenuFrame:GetTall() - 27, MenuFrame:GetWide() - 1, MenuFrame:GetTall() - 27)
draw.RoundedBox( 6, 0, 1, MenuFrame:GetWide(), MenuFrame:GetTall() + 1, FrameColor )
end
MenuFrame:MakePopup()
local CloseButton = vgui.Create("DButton", MenuFrame)
CloseButton.OPaint = CloseButton.Paint
CloseButton:SetSize(150, 35)
CloseButton:SetPos(MenuFrame:GetWide() * 0.75, MenuFrame:GetTall() - 27 - CloseButton:GetTall()/2)
CloseButton:SetText("Ok, now let me play!")
CloseButton.Paint = function()
CloseButton.OPaint(CloseButton)
surface.SetDrawColor(ButtonColor)
surface.DrawRect(1, 1, CloseButton:GetWide() - 2, CloseButton:GetTall() - 2)
end
CloseButton.DoClick = function(button)
MenuFrame:Close()
end
local MenuPSheet = vgui.Create("DPropertySheet", MenuFrame)
MenuPSheet:SetPos(13, 30)
MenuPSheet:SetSize(MenuFrame:GetWide() - 25, MenuFrame:GetTall() - 84)
local group = vgui.Create( "HTML")
group:SetPos( 25, 50 )
group:SetSize( 250, 250 )
group:OpenURL("http://steamcommunity.com/groups/Rp")
local website = vgui.Create( "HTML")
website:SetPos( 25, 50 )
website:SetSize( 250, 250 )
website:OpenURL("http://www.rp.org") -- or this if you want to open an URL, remember that you must pick only one
local donate = vgui.Create("HTML", MenuPSheet)
donate:SetHTML( [[<p style="text-align: center;"><span style="font-size: x-large;"><b><span style="font-size: xx-large;">Donating</span></b></span></p>
<hr />
<p> </p>
<p style="text-align: center;"><span style="font-size: small; "><i> <font color="#3366ff"> </font></i><span style="font-size: medium; "><b><span style="font-size: large; "><font color="#3366ff">By buying Donator for </font><font color="#ff0000">10$</font><font color="#3366ff"> you will get the following in-game Perks</font></span></b></span></span></p>
<p> </p>
<p style="text-align: left;"><b>- Donator only jobs</b> </p>
<p style="text-align: left;"><b>- Express money printer</b> </p>
<p>- <b>More props</b></p>
<p><b>- VIP rank on the forums </b></p>
<p><b>- Extra in-game 5K </b><font color="#808080"><b>( Upon Request )</b></font> </p>
<p><b>- Votekick in-game command ( <font color="#808080">Able to votekick people if they break the server rules</font> )</b></p>
<p> </p>
<p style="text-align: center;"><b><span style="font-size: large;"><font color="#ff0000">Important info:</font></span></b></p>
<p style="text-align: justify;"><font size="4">By buying Donator you will not be treated any different from the regular players on the server. You will not get any special treatment or anything. Also there are NO refunds for buying donator. Please Do NOT abuse donator or you will be BANNED.</font></p>
<p> </p>
<p><font color="#ff0000"><b>Also</b></font></p>
<p><font color="#ff0000"><b></b></font>When you buy donator, please give it atleast 1 to 2 days for your donator status to kick in. If you still don't have donator status by then please post on the forums about it. </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;"><span style="font-size: x-large;"><b>To buy Donator please click the button below:</b></span></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="border-image: initial; ">
<input type="hidden" name="cmd" value="_s-xclick" />
<table style="border-image: initial; ">
<tbody>
<tr>
<td style="border-image: initial; "><input type="hidden" name="on0" value="Enter your Steam ID" />Enter your Steam ID</td>
</tr>
<tr>
<td style="border-image: initial; "><input type="text" name="os0" maxlength="200" /></td>
</tr>
<tr>
<td style="border-image: initial; "><input type="hidden" name="on1" value="Your In-Game Name" />Your In-Game Name</td>
</tr>
<tr>
<td style="border-image: initial; "><input type="text" name="os1" maxlength="200" /></td>
</tr>
</tbody>
</table>
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHZwYJKoZIhvcNAQcEoIIHWDCCB1QCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBL2K0pUONeNEEt8+dVqNFGRp6UYakYvELMI7Ner88CVazW1wBqpyvt9I93Sqwk8VqWigWmwje4YT6hFT9VLDUtSGau+DH6Fhg8OsmmUoE6iFqTkZIqfiDJ9l8rEYef1Olx8gCAHuyxBWqmvuYICB4SCWLoGtsHCWcIp4/TDAeg4DELMAkGBSsOAwIaBQAwgeQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIlKJpwOLc5IuAgcBsQS7uL1cMVtYeBlZpDTo4o0JYoqqjNTFFFCuTGuAd8kr07kF5WYZ6Ms7ya5LfDVPjUeU++N66YvUkpFyL8cPrFw5y8XYx1cDgNR6aFw9lY4OkRdAiF7qOoAA2gW7QLqU3RO/6Vcl+X8MN16Y8w3pTh9zfewwGXEbqcTn3bREACS0M4SgrOVPfguBj+Oe5twTqsDvdGZ6kGVQJGZVXexIfWNrFUSRlS+k0QFEvXiwIHYPMGilJg0866KlVnmAcZwagggOHMIIDgzCCAuygAwIBAgIBADANBgkqhkiG9w0BAQUFADCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRY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1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMTA5MTQwOTMwMjJaMCMGCSqGSIb3DQEJBDEWBBSFfDeTI1kZG0wVhc5UuKa3zjs5hjANBgkqhkiG9w0BAQEFAASBgBKvJPuUrhMj2Ro1PR6mhfT8pm9A2x0ttxO29ougltKF8L8d8vT+wkOShfzoHLpuzFeTsdRq1HQTHNfmUWaQV.OFGC/zkZR9Fcv1LO5Lm1z98alJqPIKrQqs3lVjp1Y/MX+6srl5sH2hqgj7Bloxe5OrST7hsxCN0RtlI1G13FSL-----END PKCS7-----" /><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" /><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
<b>YOU </b><font color="#ff0000" style="font-weight: bold; ">MUST</font><b> PUT
You are parenting donate to the main property sheet. Try adding it to a DPanelList so you can just add the panel list to the property sheet at the end.
Sorry, you need to Log In to post a reply to this thread.