Silabsoft Forums: Tutorials - [377][238] Blinking Sidebar Tab

Jump to content

Toggle shoutbox Shoutbox

GEM 1.0 Released: GEM 1.0
robgob Icon : (08 September 2010 - 10:00 PM) I need a vacation...
robgob Icon : (08 September 2010 - 10:00 PM) Wowzass
theru1er Icon : (08 September 2010 - 06:01 PM) If thats happening you have to open a new brower "Like Exit of of ur current one, And Open back up"
Jerak Icon : (08 September 2010 - 05:13 PM) ...stupid silab client, Connection Error Retrying in...
Hyperionn Icon : (08 September 2010 - 02:09 PM) im here
Zed23 Icon : (08 September 2010 - 10:40 AM) hi
z3rk3r tw1n Icon : (08 September 2010 - 10:37 AM) yo antbody here
Hyperionn Icon : (07 September 2010 - 11:05 PM) lol me 2
Saint Icon : (07 September 2010 - 10:38 PM) I need to really stop staying up this late
Hyperionn Icon : (07 September 2010 - 06:17 PM) yo peoples
Saint Icon : (07 September 2010 - 05:34 PM) Hows it going
mike888 Icon : (07 September 2010 - 04:54 PM) hhi
Saint Icon : (07 September 2010 - 04:41 PM) SUP!
z3rk3r tw1n Icon : (07 September 2010 - 04:10 PM) could u upload on uppit and send me link in pm
z3rk3r tw1n Icon : (07 September 2010 - 04:10 PM) still dont work for me
Hyperionn Icon : (07 September 2010 - 04:09 PM) kk
z3rk3r tw1n Icon : (07 September 2010 - 04:09 PM) =d ill download tomz i gtg
Hyperionn Icon : (07 September 2010 - 04:09 PM) its working now
Hyperionn Icon : (07 September 2010 - 04:09 PM) yay its working
z3rk3r tw1n Icon : (07 September 2010 - 04:08 PM) i gtg in a sec so ill download it tomz
Resize Shouts Area



Navigation

[377][238] Blinking Sidebar Tab

opcode:238
Payload Structure: byte
Description: Alert the user to click a tab by making it blink.


Code from client:


if (opcode == 238)
{
alertTab = inBuffer.getUByte();
if (alertTab == tabID)
{
if (alertTab == 3)
{
tabID = 1;
} else
{
tabID = 3;
}
needDrawTabArea = true;
}
opcode = -1;
return true;
}



Example Server Implementation:


public ActionSender sendBlinkingTab(byte tabId) {
PacketBuilder bldr = new PacketBuilder(238);
bldr.putByte(tabId);
player.getSession().write(bldr.toPacket());
return this;
}
  1. Information

Tutorial Information

Writer:
silabsoft Icon
Views:
124
Submit Date:
Jul 09 2010 06:56 AM
Edit Date:
--
Edited by:
--
Support Topic:
Click to view support topic
Topic Replies:
1
Share This Tutorial
Share on Facebook Share on Twitter

Submitter Information

Tutorials Count:
72
Member's Tutorials:
Member's Tutorials List

Attachments

  • No attachments were found

Tutorials Statistics

Total Tutorials
120
Available Tutorials
119
Pending Tutorials
1
Categories
17
Latest Tutorial
[Project Insanity] Understanding The Basics By I Vain I  Icon
RSS
Tutorials RSS

1 user(s) are using the tutorials System


miniTutorials System 3.0.4 © IPBEgypt, Inc 2010