From c73913a86499349ddfc38f64deee795d3eb91eb3 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Wed, 4 Jan 2012 18:05:58 -0600 Subject: [PATCH] Decided to allow width adjustment to ticker floater. It's a little wonky due to blocking height adjustment. LLFloater is kinda crappy and doesen't provide a real max_height/max_width mechanism to do this, so the behavior is a little wonky, but good enough for now. --- indra/newview/shfloatermediaticker.cpp | 15 ++++++++++++++- indra/newview/shfloatermediaticker.h | 2 +- .../xui/en-us/sh_floater_media_ticker.xml | 14 +++++++------- .../sh_floater_media_ticker_visualizer.xml | 18 +++++++++--------- 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/indra/newview/shfloatermediaticker.cpp b/indra/newview/shfloatermediaticker.cpp index 9a36746f8..52982d149 100644 --- a/indra/newview/shfloatermediaticker.cpp +++ b/indra/newview/shfloatermediaticker.cpp @@ -69,7 +69,20 @@ SHFloaterMediaTicker::SHFloaterMediaTicker() : LLFloater()/*, LLSingletongetStreamingAudioImpl()->isPlaying() != 1; //will return 1 if playing. diff --git a/indra/newview/shfloatermediaticker.h b/indra/newview/shfloatermediaticker.h index 6a5470d6e..eeaf1e10b 100644 --- a/indra/newview/shfloatermediaticker.h +++ b/indra/newview/shfloatermediaticker.h @@ -13,7 +13,7 @@ public: /*virtual*/ void draw(); /*virtual*/ void onOpen(); /*virtual*/ void onClose(bool app_quitting); - + /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE); static void showInstance(); //use to create. private: void updateTickerText(); //called via draw. diff --git a/indra/newview/skins/default/xui/en-us/sh_floater_media_ticker.xml b/indra/newview/skins/default/xui/en-us/sh_floater_media_ticker.xml index d002b1cc5..392736537 100644 --- a/indra/newview/skins/default/xui/en-us/sh_floater_media_ticker.xml +++ b/indra/newview/skins/default/xui/en-us/sh_floater_media_ticker.xml @@ -1,32 +1,32 @@ - - - Artist: Title: diff --git a/indra/newview/skins/default/xui/en-us/sh_floater_media_ticker_visualizer.xml b/indra/newview/skins/default/xui/en-us/sh_floater_media_ticker_visualizer.xml index e26e56e0c..e324830f1 100644 --- a/indra/newview/skins/default/xui/en-us/sh_floater_media_ticker_visualizer.xml +++ b/indra/newview/skins/default/xui/en-us/sh_floater_media_ticker_visualizer.xml @@ -1,36 +1,36 @@ - - - - + Artist: Title: