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.


Messages - jdye82

Pages: [1] 2
1
Scripting / Re: Text styling questions
« on: October 15, 2017, 03:11:55 AM »
Problem solved: I renamed all of my lists/filters in all caps !  8)

Thanks everyone for their time and help. Sometimes there's a much simpler way to do it!

2
Scripting / Re: Text styling questions
« on: October 14, 2017, 10:12:26 AM »
Honestly, that's not the problem.

If I swap [!filtername] with [FilterName] it works fine (but is obviously not in capitals). The issue I'm having is that the function isn't working.

Actually, did you try to change ? What is your result?

local filter1 = fe.add_text("LIST: [!filtername]", flx*0.18, fly*0.02, flw*0.600, flh*0.500 );

This just moved the text ("LIST:") to the other side of the screen, but the filter name from the function is still not working.

3
Scripting / Re: Text styling questions
« on: October 14, 2017, 07:03:17 AM »
Honestly, that's not the problem.

If I swap [!filtername] with [FilterName] it works fine (but is obviously not in capitals). The issue I'm having is that the function isn't working.

4
Scripting / Re: Text styling questions
« on: October 14, 2017, 01:25:39 AM »
I think you set a incorrect x axis location (outside of screen)

local filter2 = fe.add_text("LIST:", flx*1.18, fly*0.02, flw*0.600, flh*0.500 );

Please try to change it to flx*0.1

Unfortunately that's not the issue. The text is being rotated 90 degrees, which is why it needs the odd positioning. The text "LIST:" is still visible, just not the filter/list name. So the problem definitely appears to be in the function?

5
Scripting / Re: Text styling questions
« on: October 13, 2017, 10:35:04 AM »
Please update filtername fucntion as below  :)

function filtername(){
     local text = fe.filters[1];
     return text.name.toupper();
}

OK. So, the ROM name/title is now showing - and working in uppercase!!

BUT, The filer/list name is not showing now. So it looks like there's something wrong with fe.filters[1] ?

6
Scripting / Re: Text styling questions
« on: October 13, 2017, 03:30:41 AM »
Sure. Attached

7
Scripting / Re: Text styling questions
« on: October 13, 2017, 12:54:42 AM »
OK, I have no idea where I'm going wrong, but I still can't get this to work.

Here's the code.

Code: [Select]
function title(){
  local text = fe.game_info(Info.Title);
  return text.toupper();
}

local title = fe.add_text("[!title]  PLAYS: [PlayedCount]", flx*0.235, fly*0.02, flw*0.600, flh*0.500 );

Using this, the text doesn't display at all, so something's off. As soon as I remove the function and stop trying to make the text uppercase, it's fine. So it's definitely the function causing the issues  :(

Any final thoughts? If not, I'll learn to live with it, or will find a suitable replacement uppercase font.

8
Scripting / Re: Text styling questions
« on: October 12, 2017, 01:21:27 AM »
Brilliant.

Thank you keilmillerjr and jedione for your help and time on this. Will give it a go this evening (UK).

9
Scripting / Re: Text styling questions
« on: October 11, 2017, 01:11:23 AM »
Got the colours working now. Thanks all for the advice.
Now searching for a decent replacement font that's all caps. If only I could get .toupper could work!

10
Scripting / Re: Text styling questions
« on: October 10, 2017, 06:08:16 AM »
Ah, I get you now. Yeah, that sounds like it'd work fine. I'll give it a try this evening and will let you know how it turned out.
Thanks!

11
Scripting / Re: Text styling questions
« on: October 10, 2017, 04:31:11 AM »
That wouldn't achieve the alignment I'm after - I want the two to flow together in one text object. Example below.

12
Scripting / Re: Text styling questions
« on: October 10, 2017, 01:29:30 AM »
Thanks for the responses.
So, it pretty much looks like I can't easily get the effect/layout I'm after and will have to compromise with text all the same colour and not uppercase.

13
Scripting / Re: Text styling questions
« on: October 09, 2017, 05:31:54 AM »
OK. So, to get my desired effect - of having the Title and Play Count coloured individually, but placed within / positioned with the same text object - presumably I need to define and colour each individually and then call them together within a text object? (as you can tell, I'm no programmer and so very likely not using the correct terms here).
If so, how would I go about doing this?

14
Scripting / Text styling questions
« on: October 09, 2017, 01:22:04 AM »

I'm hoping someone can help me with a, hopefully, pretty simple newbie question.

I have the following string that I want to be able to style in two different colours:

Code: [Select]
local details = fe.add_text("[Title] - Plays: [PlayedCount]", flx*0.235, fly*0.02, flw*0.300, flh*0.500 );
For example, I want the title to be white but the play count to be blue. But I have to have the two grouped together so that the play count always follows on directly from the title - I don't them to be positioned independently.

Also, how can I make this string uppercase? I have tried using toupper, as below, but it doesn't work.

Code: [Select]
details.toupper();
thanks in advance for any help.

15
Themes / Re: Help Developing a Theme
« on: September 12, 2017, 09:31:39 AM »
Cool. Thank you. I should be able to send assets etc tomorrow. thanks again.

Pages: [1] 2