Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Ps3Memory
- {
- public static byte[] BIND = new byte[4];
- public static uint ProcessID;
- public static uint[] processIDs;
- private static string usage;
- public static PS3TMAPI.ConnectStatus connectStatus;
- public static string Status;
- }
- class MenuItems
- {
- public static int
- Shader = 0,
- ScrollBarBackGround = 1;
- }
- public void NewsBar(uint client, bool state, string Text)
- {
- //NewsBar(client, true, "Text Here");
- //Credits To Bad Luck Brian For Non-Scrolling News Bar!
- PS3TMAPI.InitTargetComms();
- PS3TMAPI.Connect(0, null);
- PS3TMAPI.GetProcessList(0, out Ps3Memory.processIDs);
- ulong uProcess = Ps3Memory.processIDs[0];
- Ps3Memory.ProcessID = Convert.ToUInt32(uProcess);
- PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, Ps3Memory.ProcessID);
- PS3TMAPI.ProcessContinue(0, Ps3Memory.ProcessID);
- var scrollspeed = 1; //Scrolling Speed
- if (state == false)
- {
- for (uint i = 600; i < 605; i++)
- {
- ActivateIndex1(false, (int)i, 0);
- }
- }
- else
- {
- Huds.StoreIcon(600, client, 2, 1000, 50, 300, 464, 0, MenuItems.ScrollBarBackGround, 255, 255, 255, 240, "Back"); //Background
- Huds.StoreIcon(601, client, 16, 1000, 5, 300, 440, 0, MenuItems.ScrollBarBackGround, 255, 20, 0, 150, "Back"); //Background
- Huds.StoreIcon(602, client, 16, 1000, 5, 300, 467, 0, MenuItems.ScrollBarBackGround, 255, 20, 0, 150, "Back"); //Background
- Huds.StoreTextElem(603, (int)client, Text, 3, 1.3f, 300, 453, 0, MenuItems.Shader, 255, 200, 200, 255, 255, 0, 0, 0, "Front"); //Text
- for (uint i = 600; i < 603; i++)
- {
- ActivateIndex1(true, (int)i, 4);
- }
- ActivateIndex1(true, 603, 1);
- for (int i = 800; i > -400; )
- {
- i = i - scrollspeed; //Speed
- MoveShader(603, i, 453, 0, 0);
- if (i == -300)
- {
- i = 800;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment