Jump to content
  • 0
Jarfinkle

Text colour, magic book interface, and equipment tab freezing!

Question

My "Click to continue" and other dialogue are different colours than the default, and when hovered over, they turn green. How do I change that? [URL="http://puu.sh/QPql"]http://puu.sh/QPql[/URL]. Hovered - [url]http://puu.sh/QPs1[/url].

My magic book does not draw the black box behind the spell info, ancients does the same, lunars has no spell info or black box. Magic book - [url]http://puu.sh/QPt2[/url]. Ancient book - [url]http://puu.sh/QPtC[/url]. Lunar book - [url]http://puu.sh/QPtT[/url].

Lastly, when I click my equipment tab, the client freezes, and gives me this error - [url]http://puu.sh/QPuQ[/url]. I'm sure it has something to do with my sprites. Here's my sprites - [url]http://puu.sh/QPyV[/url], and RSInterface. I have a feeling I'm missing a sprite.
public static void equipmentScreen(TextDrawingArea[] wid) {
[CODE]RSInterface Interface = RSInterface.interfaceCache[1644];
addButton(19144, 6, "Equipment/CUSTOM", 150, 40, "Show Equipment Stats", 1);
removeSomething(19145);
removeSomething(19146);
removeSomething(19147);
setBounds(19144, 21, 210, 23, Interface);
setBounds(19145, 40, 210, 24, Interface);
setBounds(19146, 40, 210, 25, Interface);
setBounds(19147, 40, 210, 26, Interface);

RSInterface tab = addTabInterface(15106);
addSprite(15107, 1, "bg");
addHoverButton(15210, "SPRITE", 1, 21, 21, "Close", 250, 15211, 3);
addHoveredButton(15211, "SPRITE", 3, 21, 21, 15212);
addText(15111, "", wid, 2, 0xe4a146, false, true);
int rofl = 3;
addText(15112, "Attack bonuses", wid, 2, 0xFF8900, false, true);
addText(15113, "Defence bonuses", wid, 2, 0xFF8900, false, true);
addText(15114, "Other bonuses", wid, 2, 0xFF8900, false, true);
addText(19148, "Summoning: +0", wid, 1, 0xFF8900, false, true);
addText(19149, "Absorb Melee: +0%", wid, 1, 0xFF9200, false, true);
addText(19150, "Absorb Magic: +0%", wid, 1, 0xFF9200, false, true);
addText(19151, "Absorb Ranged: +0%", wid, 1, 0xFF9200, false, true);
addText(19152, "Ranged Strength: +0", wid, 1, 0xFF9200, false, true);
addText(19153, "Magic Damage: +0%", wid, 1, 0xFF9200, false, true);
for(int i = 1675; i <= 1684; i++) {
textSize(i, wid, 1);
}
textSize(1686, wid, 1);
textSize(1687, wid, 1);
addChar(15125);
tab.totalChildren(50);
tab.child(0, 15107, 15, 5);
tab.child(1, 15210, 476, 8);
tab.child(2, 15211, 476, 8);
tab.child(3, 15111, 14, 30);
int Child = 4; int Y = 45;
tab.child(16, 15112, 24, 30 - rofl);
for(int i = 1675; i <= 1679; i++) {
tab.child(Child, i, 29, Y - rofl);
Child++;
Y += 14;
}
int edit = 7 + rofl;
tab.child(18, 15113, 24, 122 - edit);
tab.child(9, 1680, 29, 137 - edit - 2);
tab.child(10, 1681, 29, 153 - edit - 3);
tab.child(11, 1682, 29, 168 - edit - 3);
tab.child(12, 1683, 29, 183 - edit - 3);
tab.child(13, 1684, 29, 197 - edit - 3);
tab.child(44, 19148, 29, 211 - edit - 3);
tab.child(45, 19149, 29, 225 - edit - 3);
tab.child(46, 19150, 29, 239 - edit - 3);
tab.child(47, 19151, 29, 253 - edit - 3);

int edit2 = 33 - rofl, edit3 = 2;
tab.child(19, 15114, 24, 223 + edit2);
tab.child(14, 1686, 29, ((262-24) + edit2) - edit3);
tab.child(17, 19152, 29, ((276-24) + edit2) - edit3);
tab.child(48, 1687, 29, ((290-24) + edit2) - edit3);
tab.child(49, 19153, 29, ((304-24) + edit2) - edit3);

tab.child(15, 15125, 170, 200);
tab.child(20, 1645, 104+295, 149-52);
tab.child(21, 1646, 399, 163);
tab.child(22, 1647, 399, 163);
tab.child(23, 1648, 399, 58+146);
tab.child(24, 1649, (26+22+297)-2, (((110-44)+118)-13)+5);
tab.child(25, 1650, 321+22, 58+154);
tab.child(26, 1651, 321+134, 58+118);
tab.child(27, 1652, 321+134, 58+154);
tab.child(28, 1653, 321+48, 58+81);
tab.child(29, 1654, 321+107, 58+81);
tab.child(30, 1655, 321+58, 58+42);
tab.child(31, 1656, 321+112, 58+41);
tab.child(32, 1657, 321+78, 58+4);
tab.child(33, 1658, 321+37, 58+43);
tab.child(34, 1659, 321+78, 58+43);
tab.child(35, 1660, 321+119, 58+43);
tab.child(36, 1661, 321+22, 58+82);
tab.child(37, 1662, 321+78, 58+82);
tab.child(38, 1663, 321+134, 58+82);
tab.child(39, 1664, 321+78, 58+122);
tab.child(40, 1665, 321+78, 58+162);
tab.child(41, 1666, 321+22, 58+162);
tab.child(42, 1667, 321+134, 58+162);
tab.child(43, 1688, (50+297)-2, (110-13)+5);
for(int i = 1675; i <= 1684; i++){
RSInterface rsi = interfaceCache[i];
rsi.textColor = 0xFF9200;
rsi.centerText = false;
}
for(int i = 1686; i <= 1687; i++) {
RSInterface rsi = interfaceCache[i];
rsi.textColor = 0xFF9200;
rsi.centerText = false;
}
}[/CODE]

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
[quote name='Jarfinkle']My "Click to continue" and other dialogue are different colours than the default, and when hovered over, they turn green. How do I change that? [URL="http://puu.sh/QPql"]http://puu.sh/QPql[/URL]. Hovered - [url]http://puu.sh/QPs1[/url].

My magic book does not draw the black box behind the spell info, ancients does the same, lunars has no spell info or black box. Magic book - [url]http://puu.sh/QPt2[/url]. Ancient book - [url]http://puu.sh/QPtC[/url]. Lunar book - [url]http://puu.sh/QPtT[/url].

Lastly, when I click my equipment tab, the client freezes, and gives me this error - [url]http://puu.sh/QPuQ[/url]. I'm sure it has something to do with my sprites. Here's my sprites - [url]http://puu.sh/QPyV[/url], and RSInterface. I have a feeling I'm missing a sprite.
public static void equipmentScreen(TextDrawingArea[] wid) {
[CODE]RSInterface Interface = RSInterface.interfaceCache[1644];
addButton(19144, 6, "Equipment/CUSTOM", 150, 40, "Show Equipment Stats", 1);
removeSomething(19145);
removeSomething(19146);
removeSomething(19147);
setBounds(19144, 21, 210, 23, Interface);
setBounds(19145, 40, 210, 24, Interface);
setBounds(19146, 40, 210, 25, Interface);
setBounds(19147, 40, 210, 26, Interface);

RSInterface tab = addTabInterface(15106);
addSprite(15107, 1, "bg");
addHoverButton(15210, "SPRITE", 1, 21, 21, "Close", 250, 15211, 3);
addHoveredButton(15211, "SPRITE", 3, 21, 21, 15212);
addText(15111, "", wid, 2, 0xe4a146, false, true);
int rofl = 3;
addText(15112, "Attack bonuses", wid, 2, 0xFF8900, false, true);
addText(15113, "Defence bonuses", wid, 2, 0xFF8900, false, true);
addText(15114, "Other bonuses", wid, 2, 0xFF8900, false, true);
addText(19148, "Summoning: +0", wid, 1, 0xFF8900, false, true);
addText(19149, "Absorb Melee: +0%", wid, 1, 0xFF9200, false, true);
addText(19150, "Absorb Magic: +0%", wid, 1, 0xFF9200, false, true);
addText(19151, "Absorb Ranged: +0%", wid, 1, 0xFF9200, false, true);
addText(19152, "Ranged Strength: +0", wid, 1, 0xFF9200, false, true);
addText(19153, "Magic Damage: +0%", wid, 1, 0xFF9200, false, true);
for(int i = 1675; i <= 1684; i++) {
textSize(i, wid, 1);
}
textSize(1686, wid, 1);
textSize(1687, wid, 1);
addChar(15125);
tab.totalChildren(50);
tab.child(0, 15107, 15, 5);
tab.child(1, 15210, 476, 8);
tab.child(2, 15211, 476, 8);
tab.child(3, 15111, 14, 30);
int Child = 4; int Y = 45;
tab.child(16, 15112, 24, 30 - rofl);
for(int i = 1675; i <= 1679; i++) {
tab.child(Child, i, 29, Y - rofl);
Child++;
Y += 14;
}
int edit = 7 + rofl;
tab.child(18, 15113, 24, 122 - edit);
tab.child(9, 1680, 29, 137 - edit - 2);
tab.child(10, 1681, 29, 153 - edit - 3);
tab.child(11, 1682, 29, 168 - edit - 3);
tab.child(12, 1683, 29, 183 - edit - 3);
tab.child(13, 1684, 29, 197 - edit - 3);
tab.child(44, 19148, 29, 211 - edit - 3);
tab.child(45, 19149, 29, 225 - edit - 3);
tab.child(46, 19150, 29, 239 - edit - 3);
tab.child(47, 19151, 29, 253 - edit - 3);

int edit2 = 33 - rofl, edit3 = 2;
tab.child(19, 15114, 24, 223 + edit2);
tab.child(14, 1686, 29, ((262-24) + edit2) - edit3);
tab.child(17, 19152, 29, ((276-24) + edit2) - edit3);
tab.child(48, 1687, 29, ((290-24) + edit2) - edit3);
tab.child(49, 19153, 29, ((304-24) + edit2) - edit3);

tab.child(15, 15125, 170, 200);
tab.child(20, 1645, 104+295, 149-52);
tab.child(21, 1646, 399, 163);
tab.child(22, 1647, 399, 163);
tab.child(23, 1648, 399, 58+146);
tab.child(24, 1649, (26+22+297)-2, (((110-44)+118)-13)+5);
tab.child(25, 1650, 321+22, 58+154);
tab.child(26, 1651, 321+134, 58+118);
tab.child(27, 1652, 321+134, 58+154);
tab.child(28, 1653, 321+48, 58+81);
tab.child(29, 1654, 321+107, 58+81);
tab.child(30, 1655, 321+58, 58+42);
tab.child(31, 1656, 321+112, 58+41);
tab.child(32, 1657, 321+78, 58+4);
tab.child(33, 1658, 321+37, 58+43);
tab.child(34, 1659, 321+78, 58+43);
tab.child(35, 1660, 321+119, 58+43);
tab.child(36, 1661, 321+22, 58+82);
tab.child(37, 1662, 321+78, 58+82);
tab.child(38, 1663, 321+134, 58+82);
tab.child(39, 1664, 321+78, 58+122);
tab.child(40, 1665, 321+78, 58+162);
tab.child(41, 1666, 321+22, 58+162);
tab.child(42, 1667, 321+134, 58+162);
tab.child(43, 1688, (50+297)-2, (110-13)+5);
for(int i = 1675; i <= 1684; i++){
RSInterface rsi = interfaceCache[i];
rsi.textColor = 0xFF9200;
rsi.centerText = false;
}
for(int i = 1686; i <= 1687; i++) {
RSInterface rsi = interfaceCache[i];
rsi.textColor = 0xFF9200;
rsi.centerText = false;
}
}[/CODE][/QUOTE]



for the first one you can change the colours with colour tags such as this

[code]<col=255>your text here</col>[/code]

the number defines the colour, and the numbers used are hex colours (google "hex colour codes")


2&3 your missing some sprites

Share this post


Link to post
Share on other sites
  • 0
Elaborate on the first one? And can i you show me what a regular equipment sprite folder looks like?

Share this post


Link to post
Share on other sites

×