[sldev] Voice with old style gui

Matthew Dowd matthew.dowd at hotmail.co.uk
Fri Aug 3 14:54:14 PDT 2007


I've posted a version up at http://folders.live.com/self.aspx/K8N1a2UOg2A/secondlife/SecondLife-MD.zip - this also includes some tweaks to the bottom toolbar (Friends is back, and I've swapped Chat and Communicate).

Just copy those files into the SecondLife directory - usual caveats about backing up before hand and user at your own risk etc.

This was compiled under VS2005 which I gather may produce a binary which crashes under Vista?

Comments appreciated.

Matthew




----------------------------------------
> Date: Fri, 3 Aug 2007 21:18:31 +0200
> From: nicholaz at blueflash.cc
> To: matthew.dowd at hotmail.co.uk
> CC: sldev at lists.secondlife.com
> Subject: Re: [sldev] Voice with old style gui
> 
> 
> Oh, yours is more compact ... I'm going the long way:
> kill the contacts tab, put in the old New-IM tab, and
> bring back friends, group window and button.  And I found
> a nice way to make friends more compact and visually
> appealing.
> 
> It's pretty nice that most of the old stuff is still
> intact more or less.
> 
> 
> Nick
> ---
> Second Life from the inside out:
> http://nicholaz-beresford.blogspot.com/
> 
> 
> Matthew Dowd wrote:
> > Ah, I've already been working on this along the lines outlined here: http://jira.secondlife.com/browse/VWR-1917
> > 
> > i.e. making the menu options for Groups and Friends open new windows rather than the chatterbox.
> > 
> > An initial diff of this is attached.
> > 
> > Matthew
> > 
> > 
> > ----------------------------------------
> >> Date: Fri, 3 Aug 2007 17:16:55 +0200
> >> From: nicholaz at blueflash.cc
> >> To: sldev at lists.secondlife.com
> >> Subject: [sldev] Voice with old style gui
> >>
> >>
> >> If anyone is working on this already or plans
> >> to, you might want to hold off a bit.  I just
> >> spent a bit of time on this and it looks quite
> >> good already ... shouldn't be too messy.
> >>
> >>
> >> Nick
> >> -- 
> >> Second Life from the inside out:
> >> http://nicholaz-beresford.blogspot.com/
> >> _______________________________________________
> >> Click here to unsubscribe or manage your list subscription:
> >> /index.html
> > 
> > _________________________________________________________________
> > Try Live.com - your fast, personalised homepage with all the things you care about in one place.
> > http://www.live.com/?mkt=en-gb  
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > --- base\linden\indra\newview\llviewermenu.cpp	2007-08-02 14:16:00.000000000 +0100
> > +++ mod\linden\indra\newview\llviewermenu.cpp	2007-08-03 15:39:43.390774800 +0100
> > @@ -5378,7 +5378,11 @@
> >  		}
> >  		else if (floater_name == "friends")
> >  		{
> > -			LLFloaterMyFriends::toggleInstance(0);
> > +			LLFloaterFriendsOnly::toggleInstance(0);
> > +		}
> > +		else if (floater_name == "groups")
> > +		{
> > +			LLFloaterGroupsOnly::toggleInstance(0);
> >  		}
> >  		else if (floater_name == "preferences")
> >  		{
> > @@ -5520,7 +5524,11 @@
> >  		bool new_value = false;
> >  		if (floater_name == "friends")
> >  		{
> > -			new_value = LLFloaterMyFriends::instanceVisible(0);
> > +			new_value = LLFloaterFriendsOnly::instanceVisible(0);
> > +		}
> > +		if (floater_name == "groups")
> > +		{
> > +			new_value = LLFloaterGroupsOnly::instanceVisible(0);
> >  		}
> >  		else if (floater_name == "toolbar")
> >  		{
> > @@ -5670,7 +5678,7 @@
> >  {
> >  	bool handleEvent(LLPointer event, const LLSD& userdata)
> >  	{
> > -		LLFloaterMyFriends::toggleInstance(1);
> > +		LLFloaterMyFriends::showInstance(LLSD(gAgent.getID()));
> >  		return true;
> >  	}
> >  };
> > --- base\linden\indra\newview\llfloaterchatterbox.h	2007-08-02 14:16:00.000000000 +0100
> > +++ mod\linden\indra\newview\llfloaterchatterbox.h	2007-08-03 17:29:51.712554100 +0100
> > @@ -58,6 +58,29 @@
> >  	LLTabContainerCommon* mTabs;
> >  };
> >  
> > +class LLFloaterFriendsOnly : public LLFloater, public LLUISingleton
> > +{
> > +public:
> > +	LLFloaterFriendsOnly(const LLSD& seed);
> > +	virtual ~LLFloaterFriendsOnly();
> > +	static BOOL instanceVisible(const LLSD& id);
> > +	void onClose(bool app_quitting);
> > +
> > +	static void* createFriendsPanel(void* data);
> > +};
> > +
> > +class LLFloaterGroupsOnly : public LLFloater, public LLUISingleton
> > +{
> > +public:
> > +	LLFloaterGroupsOnly(const LLSD& seed);
> > +	virtual ~LLFloaterGroupsOnly();
> > +	static BOOL instanceVisible(const LLSD& id);
> > +	void onClose(bool app_quitting);
> > +
> > +	static void* createGroupsPanel(void* data);
> > +};
> > +
> > +
> >  class LLFloaterChatterBox : public LLMultiFloater, public LLUISingleton
> >  {
> >  public:
> > --- base\linden\indra\newview\llfloaterchatterbox.cpp	2007-08-02 14:16:00.000000000 +0100
> > +++ mod\linden\indra\newview\llfloaterchatterbox.cpp	2007-08-03 18:03:48.421331300 +0100
> > @@ -112,6 +112,76 @@
> >  	return new LLPanelGroups();
> >  }
> >  
> > +// LLFloaterFriendsOnly
> > +//
> > +LLFloaterFriendsOnly::LLFloaterFriendsOnly(const LLSD& seed)
> > +{
> > +	mFactoryMap["friends_panel"] = LLCallbackMap(LLFloaterFriendsOnly::createFriendsPanel, NULL);
> > +	BOOL no_open = FALSE;
> > +	gUICtrlFactory->buildFloater(this, "floater_friends.xml", &getFactoryMap(), no_open);
> > +}
> > +
> > +//static
> > +void* LLFloaterFriendsOnly::createFriendsPanel(void* data)
> > +{
> > +	return new LLPanelFriends();
> > +}
> > +
> > +LLFloaterFriendsOnly::~LLFloaterFriendsOnly()
> > +{
> > +}
> > +
> > +// is the specified panel currently visible
> > +//static
> > +BOOL LLFloaterFriendsOnly::instanceVisible(const LLSD& id)
> > +{
> > +	// if singleton not created yet, trivially return false
> > +	if (!findInstance(id)) return FALSE;
> > +
> > +	LLFloaterFriendsOnly* floaterp = getInstance(id);
> > +	return floaterp->isInVisibleChain();
> > +}
> > +
> > +void LLFloaterFriendsOnly::onClose(bool app_quitting)
> > +{
> > +	setVisible(FALSE);
> > +}
> > +
> > +// LLFloaterGroupsOnly
> > +//
> > +LLFloaterGroupsOnly::LLFloaterGroupsOnly(const LLSD& seed)
> > +{
> > +	mFactoryMap["groups_panel"] = LLCallbackMap(LLFloaterGroupsOnly::createGroupsPanel, NULL);
> > +	BOOL no_open = FALSE;
> > +	gUICtrlFactory->buildFloater(this, "floater_groups.xml", &getFactoryMap(), no_open);
> > +}
> > +
> > +LLFloaterGroupsOnly::~LLFloaterGroupsOnly()
> > +{
> > +}
> > +
> > +//static
> > +void* LLFloaterGroupsOnly::createGroupsPanel(void* data)
> > +{
> > +	return new LLPanelGroups();
> > +}
> > +
> > +// is the specified panel currently visible
> > +//static
> > +BOOL LLFloaterGroupsOnly::instanceVisible(const LLSD& id)
> > +{
> > +	// if singleton not created yet, trivially return false
> > +	if (!findInstance(id)) return FALSE;
> > +
> > +	LLFloaterGroupsOnly* floaterp = getInstance(id);
> > +	return floaterp->isInVisibleChain();
> > +}
> > +
> > +void LLFloaterGroupsOnly::onClose(bool app_quitting)
> > +{
> > +	setVisible(FALSE);
> > +}
> > +
> >  //
> >  // LLFloaterChatterBox
> >  //
> > --- base\linden\indra\newview\skins\xui\en-us\menu_viewer.xml	2007-08-02 14:16:00.000000000 +0100
> > +++ mod\linden\indra\newview\skins\xui\en-us\menu_viewer.xml	2007-08-03 15:39:43.562724600 +0100
> > @@ -258,8 +258,9 @@
> >  			
> >  		
> >  		 > -		     left="0" mouse_opaque="true" name="Groups..." width="153">
> > -			
> > +		     left="0" mouse_opaque="true" name="Groups..." shortcut="control|shift|G" width="153">
> > +			 
> > +			 
> >  		
> >  		 >  		     left="0" mouse_opaque="true" name="separator8" width="153" />
> > --- base\linden\indra\newview\skins\xui\en-us\floater_groups.xml	2007-08-02 14:16:00.000000000 +0100
> > +++ mod\linden\indra\newview\skins\xui\en-us\floater_groups.xml	2007-08-03 18:05:52.549508900 +0100
> > @@ -1,45 +1,7 @@
> > - > -     can_resize="true" can_tear_off="false" enabled="true" follows="left|top"
> > -     height="300" hidden="false" left="280" min_height="250" min_width="350"
> > -     mouse_opaque="true" name="groups" title="Groups" width="350">
> > -	 > -	     draw_heading="false" draw_stripes="true" enabled="true"
> > -	     follows="left|top|right|bottom" hidden="false" left="10"
> > -	     mouse_opaque="true" multi_select="false" name="group list" tab_stop="true"
> > -	     top="-20" width="240">
> > -		
> > -	
> > -	 > -	     bottom="22" drop_shadow_visible="true" enabled="true" follows="left|bottom"
> > -	     font="SansSerifSmall" h_pad="0" halign="left" height="16" hidden="false"
> > -	     left="12" mouse_opaque="false" name="groupdesc" v_pad="0"
> > -	     width="248">
> > -		Your currently active group is displayed in bold.
> > -	
> > -	 > -	     bottom="5" drop_shadow_visible="true" enabled="true" follows="left|bottom"
> > -	     font="SansSerifSmall" h_pad="0" halign="left" height="16" hidden="false"
> > -	     left="12" mouse_opaque="false" name="groupcount" v_pad="0"
> > -	     width="248">
> > -		You belong to [COUNT] groups (of [MAX] maximum).
> > -	
> > -	
> > -	 > -	     font="SansSerif" height="22" hidden="false" label="Info" name="Info"
> > -	     width="80" />
> > -	 > -	     label="IM/Call" left_delta="0" name="IM"
> > -	     tool_tip="Open Instant Message session" width="80" />
> > -	 > -	     font="SansSerif" height="22" hidden="false" label="Activate"
> > -	     name="Activate" width="80" />
> > -	 > -	     font="SansSerif" height="22" hidden="false" label="Leave" name="Leave"
> > -	     width="80" />
> > -	 > -	     font="SansSerif" height="22" hidden="false" label="Create..." name="Create"
> > -	     width="80" />
> > -	 > -	     font="SansSerif" height="22" hidden="false" label="Search..."
> > -	     name="Search..." width="80" />
> > + > +     title="Contacts"
> > +     width="395">
> > +	
> > +		
> > +	
> >  
> > --- base\linden\indra\newview\skins\xui\en-us\floater_friends.xml	2007-08-02 14:16:00.000000000 +0100
> > +++ mod\linden\indra\newview\skins\xui\en-us\floater_friends.xml	2007-08-03 18:05:54.752690300 +0100
> > @@ -1,64 +1,7 @@
> > - > -     min_height="300" min_width="350" name="friends"
> > -     rect_control="FloaterFriendsRect" title="Friends">
> > -	 > -	     follows="left|top|bottom|right" left="10" multi_select="true"
> > -	     name="friend_list" right="-100" search_column="1"
> > -	     tool_tip="Hold shift or control while clicking to select multiple friends"
> > -	     top="-20">
> > -		
> > -		
> > -		
> > -		
> > -		
> > -		
> > -	
> > -	 > -	     bg_alpha_color="blue" bg_opaque_color="0,0,0,0.3" border="true" bottom="10"
> > -	     can_resize="false" follows="left|right|bottom" height="70" left="10"
> > -	     mouse_opaque="true" name="rights_container" right="-100">
> > -		 > -		     name="friend_name_label">
> > -			Select friend(s) to change rights...
> > -		
> > -		 > -		     height="16" hidden="false" initial_value="false"
> > -		     label="Can see my online status" left="10" mouse_opaque="true"
> > -		     name="online_status_cb" radio_style="false"
> > -		     tool_tip="Set whether this friend see my online status in their friends list or calling cards"
> > -		     width="200" />
> > -		 > -		     height="16" hidden="false" initial_value="false"
> > -		     label="Can see me on the map" left="25" mouse_opaque="true"
> > -		     name="map_status_cb" radio_style="false"
> > -		     tool_tip="Set whether this friend see my location on their map" width="200" />
> > -		 > -		     height="16" hidden="false" initial_value="false"
> > -		     label="Can modify my objects" left="10" mouse_opaque="true"
> > -		     name="modify_status_cb" radio_style="false"
> > -		     tool_tip="Set whether this friend can modify my objects" width="200" />
> > -		 > -		     name="process_rights_label">
> > -			Processing rights change...
> > -		
> > -	
> > -	
> > -	 > -	     label="Profile" left_delta="0" name="profile_btn"
> > -	     tool_tip="Show picture, groups, and other information" width="80" />
> > -	 > -	     label="IM/Call" left_delta="0" name="im_btn"
> > -	     tool_tip="Open Instant Message session" width="80" />
> > -	 > -	     label="Teleport..." left_delta="0" name="offer_teleport_btn"
> > -	     tool_tip="Offer this friend a teleport to your current location" width="80" />
> > -	 > -	     label="Pay..." left_delta="0" name="pay_btn"
> > -	     tool_tip="Give Linden dollars (L$) to this friend" width="80" />
> > -	 > -	     label="Remove..." left_delta="0" name="remove_btn"
> > -	     tool_tip="Remove this person from your friends list" width="80" />
> > -	 > -	     label="Add..." left_delta="0" name="add_btn"
> > -	     tool_tip="Offer friendship to a resident" width="80" />
> > + > +     title="Contacts"
> > +     width="395">
> > +	
> > +		
> > +	
> >  

_________________________________________________________________
Celeb spotting – Play CelebMashup and win cool prizes
https://www.celebmashup.com/index2.html


More information about the SLDev mailing list