Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - thromgrail

#1
AHA! I wanted to change the label in the BASS ActionBar. I created an unclickable button (clicking the GUI itself does the functions) with the same image I wanted, and did this:

Code: ags
  GUIControl *theControl = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
if (theControl == notebutt) {
  lblAction.Text = "Notebook";
}

Now it shows at the bottom of the screen and still functions normally. Thank you very much for your assistance! And thank you very much for your patience!
#2
My apologies. I called it a button since I made it function as a button, but it's just a GUI. Attempting to use GUI returns this error:

GlobalScript.asc(466): Error (line 466): '.Text' is not a public member of 'GUI'. Are you sure you spelt it correctly (remember, capital letters are important)?

It's possible I don't know what to use instead of LabelInfo, my code is as follows:

Code: ags
  GUI *theControl = GUI.GetAtScreenXY(mouse.x, mouse.y);
  if (theControl == gNotebutton) {
    gNotebutton.Text = "Notebook";
  }
#3
Quote from: Kara Jo Kalinowski on Sat 08/02/2025 19:03:10You can do this inside your repeatedly_execute:

Code: ags
GUIControl *theControl = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
if (theControl == ButtonQuit) {
  LabelInfo.Text = "Quit Game";
}

Replace ButtonQuit and LabelInfo with whatever yours are called.

This doesn't seem to work?

Code: ags
GUIControl *theControl = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
if (theControl == gNotebutton) {
  gNotebutton.Text = "Notebook";
}

returns an error on "if (theControl" etc.,
GlobalScript.asc(465): Error (line 465): Type mismatch: cannot convert 'GUIControl*' to 'GUI*'
#4
Specifically, I have a notebook GUI button in the lower right corner of the screen, when you mouse over it, I'd like the text that displays at the bottom of the screen in BASS with objects, characters, and hotspots that have descriptions, to show "Notebook." Wracking my brain but not clear how, or if, this can be done. Thanks for your time!
#6
In the default behavior, clicking on the right or left arrows doesn't close the bar, but for some reason in my game, it does, after changing the images and size. Very annoying. Anyone have any ideas? Thank you.
SMF spam blocked by CleanTalk