Skip to content

Commit 826c831

Browse files
authored
Update penthouse.lua
Adding SetColor() for patterns Setting default Penthouse style to "sharp"
1 parent 639ad37 commit 826c831

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

dlc_casino/penthouse.lua

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ DiamondPenthouse = {
4242
SetIplPropState(DiamondPenthouse.interiorId, value, false, refresh)
4343
end
4444
end
45+
end,
46+
SetColor = function(pattern, color, refresh)
47+
SetInteriorEntitySetColor(DiamondPenthouse.interiorId, pattern, color)
48+
if (refresh) then RefreshInterior(DiamondPenthouse.interiorId) end
4549
end
4650
},
4751
SpaBar = {
@@ -247,9 +251,15 @@ DiamondPenthouse = {
247251
},
248252

249253
LoadDefault = function()
254+
local styleColor = DiamondPenthouse.Colors.sharp
255+
local stylePattern = DiamondPenthouse.Interior.Pattern.pattern01
256+
250257
DiamondPenthouse.Ipl.Interior.Load()
251-
252-
DiamondPenthouse.Interior.Walls.SetColor(DiamondPenthouse.Colors.default)
258+
259+
DiamondPenthouse.Interior.Walls.SetColor(styleColor)
260+
DiamondPenthouse.Interior.Pattern.Set(stylePattern)
261+
DiamondPenthouse.Interior.Pattern.SetColor(stylePattern, styleColor)
262+
253263
DiamondPenthouse.Interior.SpaBar.Set(DiamondPenthouse.Interior.SpaBar.open)
254264
DiamondPenthouse.Interior.MediaBar.Set(DiamondPenthouse.Interior.MediaBar.open)
255265
DiamondPenthouse.Interior.Dealer.Set(DiamondPenthouse.Interior.Dealer.open)

0 commit comments

Comments
 (0)