ULX

Author Topic: TTT Advanced End Round Music  (Read 4428 times)

0 Members and 1 Guest are viewing this topic.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
TTT Advanced End Round Music
« on: July 05, 2016, 02:53:36 PM »
I am having trouble with the F1 menu the Enable End Round Music I disable it but it doesn't disable can someone help. I'm guessing it would effect this part.
Code: [Select]

local function AddSettings( dtabs )
local musicsettings = vgui.Create( "DPanelList", dtabs )
musicsettings:StretchToParent( 0, 0, padding, 0 )
musicsettings:EnableVerticalScrollbar( true )
musicsettings:SetPadding( 10 )
musicsettings:SetSpacing( 10 )

local setting = nil
local Music = vgui.Create( "DForm", musicsettings )
Music:SetName( "End Round Music" )

setting = Music:CheckBox( "Enable End Round Music", "ttt_eor_music_enabled" )
setting:SetTooltip( "Disable EOR Music" )

musicsettings:AddItem( Music )

dtabs:AddSheet( "EOR Music", musicsettings, "icon16/music.png", false, false, "End Round Music Settings" )
end
hook.Add( "TTTSettingsTabs", "AddSettings", AddSettings )

end
« Last Edit: July 05, 2016, 03:09:30 PM by C.Finley »

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: TTT Advanced End Round Music
« Reply #1 on: July 05, 2016, 03:04:28 PM »
Don't think you should make a new post here for it... you would probably leave a comment on the Original Release page.
(Idk though, I'm not a mod)

I could likely take a look at it later today to see why it would do that but I don't know.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #2 on: July 05, 2016, 03:06:40 PM »
well nobody has looked at that post for a long time and I just need support and thats really more discussion area I don't know though. I'm using the github his updated version.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: TTT Advanced End Round Music
« Reply #3 on: July 05, 2016, 03:07:34 PM »
Can you send me a link? I don't want to go looking for it tbh.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #5 on: July 05, 2016, 03:39:42 PM »
setting = Music:CheckBox( "Enable End Round Music", "ttt_eor_music_enabled" )
      setting:SetTooltip( "Disable EOR Music" )

I feel like its this part perhaps like maybe ttt_eor_music_disabled idk when uncheck like
setting:SetTooltip( "ttt_eor_music_disabled" )

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: TTT Advanced End Round Music
« Reply #6 on: July 05, 2016, 03:56:40 PM »
Tooltip is just like the "hint", like, what it does. It should work, do you get any console errors, either client or server?
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #7 on: July 05, 2016, 03:57:54 PM »
Nope All I do is uncheck box and it does nothing. Music still plays.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: TTT Advanced End Round Music
« Reply #8 on: July 05, 2016, 03:59:50 PM »
If the box is unchecked it will play music.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #9 on: July 05, 2016, 04:01:19 PM »
Enable End Round Music is what it says so it is checked aka enabled, then you uncheck should disable but it doesn't

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: TTT Advanced End Round Music
« Reply #10 on: July 05, 2016, 04:13:34 PM »
Don't know then... it IS an old addon and was probably broken by some GMod update. Others are having the same issue and I don't know enough about it myself to figure out why.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #11 on: July 05, 2016, 04:35:17 PM »
should it say disable end round music and ttt_eor_music_disabled????? only problem is its default set to check marked. I also tested disabling all addons and still doesn't work.
« Last Edit: July 05, 2016, 05:17:04 PM by C.Finley »

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: TTT Advanced End Round Music
« Reply #12 on: July 05, 2016, 05:28:07 PM »
No, earlier in the code it defined ttt_eor_music_enabled as a 1 or 0 CVAR. When the box is unchecked, it should be set to 0 (unlike what I said above) which should stop it. It also is set to if that CVAR is set to 0, it should do nothing, but for whatever reason it isn't and still playing music. I could look into it if I have some spare time but I can't ATM.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline C.Finley

  • Newbie
  • *
  • Posts: 36
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #13 on: July 05, 2016, 05:37:00 PM »
That would be greatbecause I tried it with no addons and it still doesn't work and I had Bull ... expert dev look at it and he said it looked fine which is weird then.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: TTT Advanced End Round Music
« Reply #14 on: July 05, 2016, 05:38:04 PM »
It does look fine to just looking at it but there's either something wrong in it, the client, or GMod itself.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.