[hlcoders] CHudTexture::DrawSelfCropped + scaling

2006-04-28 Thread Scott Loyd
--
[ Picked text/plain from multipart/alternative ]
http://www.chatbear.com/board.plm?a=viewthread&b=4991&t=497,1133274768,23976&s=0&id=929175#2
"To make it resolutionindependent you have to change a bit in the
CHudTexture because DrawSelfCropped does not implement scaling of the
texture."

This is exactly what I need ATM, but I can't seem to find anymore
information about this.  Can someone fill me in?
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say "broken" suddenly

2006-04-28 Thread Aaron Schiff
--
[ Picked text/plain from multipart/alternative ]
You shouldn't need to do all of these changes to it because say essentially
works.  You should add in a debug message or something to the say
callback...

--
ts2do
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



[hlcoders] Scrollbar Missing Texture

2006-04-28 Thread Justin Krenz

The scroll bar background in my mod's MOTD panel is missing its texture
(appears as the purple checkerboard).  Does anyone know what texture is
needed for scroll bars?

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say "broken" suddenly

2006-04-28 Thread Benjamin Davison
--
[ Picked text/plain from multipart/alternative ]
Thanks Tony, that is indeed the file which I need, I am currently looking
into ::KeyInput which picks up keypresses, it recognises that I press the
bind for "say" so that's good, and then I get put into this function
StartMessageMode( MM_SAY ); Which is nice and promising :)

Then onto the actual hud_basechat I am put into this function
CBaseHudChat::StartMessageMode Which is a small function consiting of this

m_nMessageMode = iMessageModeType;

m_pChatInput->ClearEntry();

if ( m_nMessageMode == MM_SAY )
{
m_pChatInput->SetPrompt( L"Say :" );
}
else
{
m_pChatInput->SetPrompt( L"Say (TEAM) :" );
}

vgui::SETUP_PANEL( this );
SetKeyBoardInputEnabled( true );
m_pChatInput->SetVisible( true );
vgui::surface()->CalculateMouseVisible();
m_pChatInput->RequestFocus();

Which I would assume would do what I need, but obviously it does not. I am
not that great at debugging so I was looking at the watch list and saw this.

-m_pChatInput0x070e11e0 {m_RegisterClass={...}
m_RegisterAnimationClass={...} }CBaseHudChatInputLine *
+vgui::Panel{m_RegisterClass={...} m_RegisterAnimationClass={...}
m_Repaint_register={...} ...}vgui::Panel

I assume that the {...} is bad right?



On 4/28/06, Tony omega Sergi <[EMAIL PROTECTED]> wrote:
>
> Check out clientmodeshared.
>
> That's where it takes the bind and activates the input menu or not. Maybe
> you're goofing with the clientmode somewhere, and that's screwing it up?
>
> --
> -- omega
> Heroes of Excelsior
> http://www.heroesofexcelsior.com
> Blackened Interactive
> http://www.blackened-interactive.com
> -Original Message-
> From: Benjamin Davison [mailto:[EMAIL PROTECTED]
> Sent: April 28, 2006 9:40 AM
> To: hlcoders@list.valvesoftware.com
> Subject: Re: [hlcoders] Say "broken" suddenly
>
> --
> [ Picked text/plain from multipart/alternative ]
> All other mods apart from my own work with chat. How would you switch it
> into singleplayer if it was a multiplayer mod?
>
> I had another run through the code with winmerge, and nothing seems to be
> changed between the stock SDK and my code base :| I think one of my best
> bets is finding the piece of code that is supposed to freeze the player
> when
> they use "say" so I can move up and down to see what is broken.
>
> I'm trying to think what could of broken it, all teams are set up
> properly.
> hud_chat is the same as the stock SDK most of my changes revolve around
> the
> hl2mp_gamerules and hl2mp_player and I cannot see anything in those files
> to
> deal with chat that I might of changed. The other files changed as far as
> I
> can see do not intefere with the chat. Maybe there is a variable somewhere
> in the hl2mp_* set of files that control if you can use "say" or not :\
>
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


--
- Benjamin Davison
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



RE: [hlcoders] Say "broken" suddenly

2006-04-28 Thread Tony \"omega\" Sergi
Check out clientmodeshared.

That's where it takes the bind and activates the input menu or not. Maybe
you're goofing with the clientmode somewhere, and that's screwing it up?

--
-- omega
Heroes of Excelsior
http://www.heroesofexcelsior.com
Blackened Interactive
http://www.blackened-interactive.com
-Original Message-
From: Benjamin Davison [mailto:[EMAIL PROTECTED]
Sent: April 28, 2006 9:40 AM
To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Say "broken" suddenly

--
[ Picked text/plain from multipart/alternative ]
All other mods apart from my own work with chat. How would you switch it
into singleplayer if it was a multiplayer mod?

I had another run through the code with winmerge, and nothing seems to be
changed between the stock SDK and my code base :| I think one of my best
bets is finding the piece of code that is supposed to freeze the player when
they use "say" so I can move up and down to see what is broken.

I'm trying to think what could of broken it, all teams are set up properly.
hud_chat is the same as the stock SDK most of my changes revolve around the
hl2mp_gamerules and hl2mp_player and I cannot see anything in those files to
deal with chat that I might of changed. The other files changed as far as I
can see do not intefere with the chat. Maybe there is a variable somewhere
in the hl2mp_* set of files that control if you can use "say" or not :\


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say "broken" suddenly

2006-04-28 Thread Benjamin Davison
--
[ Picked text/plain from multipart/alternative ]
All other mods apart from my own work with chat. How would you switch it
into singleplayer if it was a multiplayer mod?

I had another run through the code with winmerge, and nothing seems to be
changed between the stock SDK and my code base :| I think one of my best
bets is finding the piece of code that is supposed to freeze the player when
they use "say" so I can move up and down to see what is broken.

I'm trying to think what could of broken it, all teams are set up properly.
hud_chat is the same as the stock SDK most of my changes revolve around the
hl2mp_gamerules and hl2mp_player and I cannot see anything in those files to
deal with chat that I might of changed. The other files changed as far as I
can see do not intefere with the chat. Maybe there is a variable somewhere
in the hl2mp_* set of files that control if you can use "say" or not :\

On 4/28/06, Garry Newman <[EMAIL PROTECTED]> wrote:
>
> --
> [ Picked text/plain from multipart/alternative ]
> Is it broken in both single player and multiplayer?
>
>
> On 4/28/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> >
> > --
> > [ Picked text/plain from multipart/alternative ]
> > Yup, broken in both.
> >
> > I think I really need to find out which other parts of the code the
> "say"
> > command resides, because I did a search on "say" and found this:
> >
> > static ConCommand say_team("say_team", CC_Player_SayTeam, "Display
> player
> > message to team");
> >
> > Which is exactly the same as the stock SDK, ima go over with winmerge
> once
> > more and see if I can't find the problem.
> >
> >
> > On 4/28/06, Garry Newman <[EMAIL PROTECTED]> wrote:
> > >
> > > --
> > > [ Picked text/plain from multipart/alternative ]
> > > Does it work in debug mode?
> > >
> > >
> > >
> > > On 4/28/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> > > >
> > > > --
> > > > [ Picked text/plain from multipart/alternative ]
> > > > Nope, I specifically wiped all my configs out of the mod to make
> sure
> > > that
> > > > was not the case.
> > > >
> > > > On 4/28/06, Michael Kramer <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > --
> > > > > [ Picked text/plain from multipart/alternative ]
> > > > > Did you bind y to any other command via .cfg or in the code?
> > > > >
> > > > > On 4/27/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > --
> > > > > > [ Picked text/plain from multipart/alternative ]
> > > > > > I used winmerge :) Thanks for the suggestion though.
> > > > > >
> > > > > > Where else do you think my code changes could be missing with
> the
> > > hud
> > > > > > chat?
> > > > > > Because my code is exactly the same as the stock SDK :|
> > > > > >
> > > > > > On 4/28/06, Stephen Micheals <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > Or Get a free copy of Winmerge and compare your code to the
> > > original
> > > > > > > copy...
> > > > > > >
> > > > > > >
> > > > > > > http://winmerge.sourceforge.net/
> > > > > > >
> > > > > > > ___
> > > > > > > To unsubscribe, edit your list preferences, or view the list
> > > > archives,
> > > > > > > please visit:
> > > > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > - Benjamin Davison
> > > > > > --
> > > > > >
> > > > > > ___
> > > > > > To unsubscribe, edit your list preferences, or view the list
> > > archives,
> > > > > > please visit:
> > > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > > > >
> > > > > >
> > > > > --
> > > > >
> > > > > ___
> > > > > To unsubscribe, edit your list preferences, or view the list
> > archives,
> > > > > please visit:
> > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > - Benjamin Davison
> > > > --
> > > >
> > > > ___
> > > > To unsubscribe, edit your list preferences, or view the list
> archives,
> > > > please visit:
> > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > >
> > > >
> > > --
> > >
> > > ___
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
> >
> > --
> > - Benjamin Davison
> > --
> >
> > ___
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
> --
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


--
- Benjamin Davison
--


Re: [hlcoders] Say "broken" suddenly

2006-04-28 Thread Garry Newman
--
[ Picked text/plain from multipart/alternative ]
Is it broken in both single player and multiplayer?


On 4/28/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
>
> --
> [ Picked text/plain from multipart/alternative ]
> Yup, broken in both.
>
> I think I really need to find out which other parts of the code the "say"
> command resides, because I did a search on "say" and found this:
>
> static ConCommand say_team("say_team", CC_Player_SayTeam, "Display player
> message to team");
>
> Which is exactly the same as the stock SDK, ima go over with winmerge once
> more and see if I can't find the problem.
>
>
> On 4/28/06, Garry Newman <[EMAIL PROTECTED]> wrote:
> >
> > --
> > [ Picked text/plain from multipart/alternative ]
> > Does it work in debug mode?
> >
> >
> >
> > On 4/28/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> > >
> > > --
> > > [ Picked text/plain from multipart/alternative ]
> > > Nope, I specifically wiped all my configs out of the mod to make sure
> > that
> > > was not the case.
> > >
> > > On 4/28/06, Michael Kramer <[EMAIL PROTECTED]> wrote:
> > > >
> > > > --
> > > > [ Picked text/plain from multipart/alternative ]
> > > > Did you bind y to any other command via .cfg or in the code?
> > > >
> > > > On 4/27/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > --
> > > > > [ Picked text/plain from multipart/alternative ]
> > > > > I used winmerge :) Thanks for the suggestion though.
> > > > >
> > > > > Where else do you think my code changes could be missing with the
> > hud
> > > > > chat?
> > > > > Because my code is exactly the same as the stock SDK :|
> > > > >
> > > > > On 4/28/06, Stephen Micheals <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Or Get a free copy of Winmerge and compare your code to the
> > original
> > > > > > copy...
> > > > > >
> > > > > >
> > > > > > http://winmerge.sourceforge.net/
> > > > > >
> > > > > > ___
> > > > > > To unsubscribe, edit your list preferences, or view the list
> > > archives,
> > > > > > please visit:
> > > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > - Benjamin Davison
> > > > > --
> > > > >
> > > > > ___
> > > > > To unsubscribe, edit your list preferences, or view the list
> > archives,
> > > > > please visit:
> > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > > >
> > > > >
> > > > --
> > > >
> > > > ___
> > > > To unsubscribe, edit your list preferences, or view the list
> archives,
> > > > please visit:
> > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > >
> > > >
> > >
> > >
> > > --
> > > - Benjamin Davison
> > > --
> > >
> > > ___
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> > --
> >
> > ___
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
>
>
> --
> - Benjamin Davison
> --
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say "broken" suddenly

2006-04-28 Thread Benjamin Davison
--
[ Picked text/plain from multipart/alternative ]
Yup, broken in both.

I think I really need to find out which other parts of the code the "say"
command resides, because I did a search on "say" and found this:

static ConCommand say_team("say_team", CC_Player_SayTeam, "Display player
message to team");

Which is exactly the same as the stock SDK, ima go over with winmerge once
more and see if I can't find the problem.


On 4/28/06, Garry Newman <[EMAIL PROTECTED]> wrote:
>
> --
> [ Picked text/plain from multipart/alternative ]
> Does it work in debug mode?
>
>
>
> On 4/28/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> >
> > --
> > [ Picked text/plain from multipart/alternative ]
> > Nope, I specifically wiped all my configs out of the mod to make sure
> that
> > was not the case.
> >
> > On 4/28/06, Michael Kramer <[EMAIL PROTECTED]> wrote:
> > >
> > > --
> > > [ Picked text/plain from multipart/alternative ]
> > > Did you bind y to any other command via .cfg or in the code?
> > >
> > > On 4/27/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> > > >
> > > > --
> > > > [ Picked text/plain from multipart/alternative ]
> > > > I used winmerge :) Thanks for the suggestion though.
> > > >
> > > > Where else do you think my code changes could be missing with the
> hud
> > > > chat?
> > > > Because my code is exactly the same as the stock SDK :|
> > > >
> > > > On 4/28/06, Stephen Micheals <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Or Get a free copy of Winmerge and compare your code to the
> original
> > > > > copy...
> > > > >
> > > > >
> > > > > http://winmerge.sourceforge.net/
> > > > >
> > > > > ___
> > > > > To unsubscribe, edit your list preferences, or view the list
> > archives,
> > > > > please visit:
> > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > - Benjamin Davison
> > > > --
> > > >
> > > > ___
> > > > To unsubscribe, edit your list preferences, or view the list
> archives,
> > > > please visit:
> > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > >
> > > >
> > > --
> > >
> > > ___
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
> >
> > --
> > - Benjamin Davison
> > --
> >
> > ___
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
> --
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


--
- Benjamin Davison
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Say "broken" suddenly

2006-04-28 Thread Garry Newman
--
[ Picked text/plain from multipart/alternative ]
Does it work in debug mode?



On 4/28/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
>
> --
> [ Picked text/plain from multipart/alternative ]
> Nope, I specifically wiped all my configs out of the mod to make sure that
> was not the case.
>
> On 4/28/06, Michael Kramer <[EMAIL PROTECTED]> wrote:
> >
> > --
> > [ Picked text/plain from multipart/alternative ]
> > Did you bind y to any other command via .cfg or in the code?
> >
> > On 4/27/06, Benjamin Davison <[EMAIL PROTECTED]> wrote:
> > >
> > > --
> > > [ Picked text/plain from multipart/alternative ]
> > > I used winmerge :) Thanks for the suggestion though.
> > >
> > > Where else do you think my code changes could be missing with the hud
> > > chat?
> > > Because my code is exactly the same as the stock SDK :|
> > >
> > > On 4/28/06, Stephen Micheals <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Or Get a free copy of Winmerge and compare your code to the original
> > > > copy...
> > > >
> > > >
> > > > http://winmerge.sourceforge.net/
> > > >
> > > > ___
> > > > To unsubscribe, edit your list preferences, or view the list
> archives,
> > > > please visit:
> > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > >
> > > >
> > >
> > >
> > > --
> > > - Benjamin Davison
> > > --
> > >
> > > ___
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> > --
> >
> > ___
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
>
>
> --
> - Benjamin Davison
> --
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders