Author Topic: Pandoras Box Theme  (Read 69369 times)

kent79

  • Hero Member
  • *****
  • Posts: 856
    • View Profile
Pandoras Box Theme
« on: June 15, 2016, 08:02:31 AM »
No need say any words.


- On & off Scan line effect.
- Show or hidden game's history


Support all resolution. Enjoy  :) 



[attachment deleted by admin]
« Last Edit: June 24, 2016, 04:40:27 AM by kent79 »

kent79

  • Hero Member
  • *****
  • Posts: 856
    • View Profile
Re: Pandoras Box Theme
« Reply #1 on: June 15, 2016, 04:12:37 PM »
Just update the code since I missed to add fe.layout.preserve_aspect_ratio = true in previous version  :P
« Last Edit: June 15, 2016, 06:55:30 PM by kent79 »

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Pandoras Box Theme
« Reply #2 on: June 15, 2016, 06:18:39 PM »
Good work Kent...

kent79

  • Hero Member
  • *****
  • Posts: 856
    • View Profile
Re: Pandoras Box Theme
« Reply #3 on: June 15, 2016, 06:35:26 PM »
Good work Kent...


I would like to change listbox game's name format  to index number of games & chop game name. Do you know a code make for ? Thanks.  :)

« Last Edit: June 15, 2016, 06:43:17 PM by kent79 »

Omamez

  • Sr. Member
  • ****
  • Posts: 222
    • View Profile
Re: Pandoras Box Theme
« Reply #4 on: June 15, 2016, 08:31:53 PM »
Nice Kent79

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Pandoras Box Theme
« Reply #5 on: June 15, 2016, 08:56:30 PM »
Good work Kent...


I would like to change listbox game's name format  to index number of games & chop game name. Do you know a code make for ? Thanks.  :)



fe.Listbox
  • format_string - Get/set the format for the text to display in each list entry. Magic tokens can be used here, see Magic Tokens for more information. If empty, game titles will be displayed (i.e. the same behaviour as if set to "[Title]"). Default is an empty value.

Can use a function for a magic token. Create your function to return your proper string. Typing on a phone while away from home. Hopefully you have enough to get started, assuming it works.

kent79

  • Hero Member
  • *****
  • Posts: 856
    • View Profile
Re: Pandoras Box Theme
« Reply #6 on: June 15, 2016, 09:04:23 PM »
Hello keilmillerjr

Find how to chop game name as below code. I will try it on tonight.

But I still not know how to use "magic token" for adding index number of games. Could you help me to complete the script?. Many Thanks.

Quote
listbox.format_string = "[SortValue]";

« Last Edit: June 15, 2016, 09:06:05 PM by kent79 »

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Pandoras Box Theme
« Reply #7 on: June 16, 2016, 03:55:39 AM »
Hello keilmillerjr

Find how to chop game name as below code. I will try it on tonight.

But I still not know how to use "magic token" for adding index number of games. Could you help me to complete the script?. Many Thanks.

Quote
listbox.format_string = "[SortValue]";

I'll try to get it started if I have a slow part of my work day. Down here in florida working 14 hour days for two weeks.

kent79

  • Hero Member
  • *****
  • Posts: 856
    • View Profile
Re: Pandoras Box Theme
« Reply #8 on: June 16, 2016, 07:11:17 AM »
First step for using magic tokens  :)

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Pandoras Box Theme
« Reply #9 on: June 16, 2016, 07:35:37 AM »
Working on a pos Android phone, so I will edit as I go as to not loose what I type.

Code: [Select]
function Title(index_offset) {

}

local listbox = fe.add_listbox( x, y, w, H );
listbox.format_string = "[!Title(index_offset)]";

kent79

  • Hero Member
  • *****
  • Posts: 856
    • View Profile
Re: Pandoras Box Theme
« Reply #10 on: June 16, 2016, 07:52:38 AM »
Working on a pos Android phone, so I will edit as I go as to not loose what I type.

Code: [Select]
function Title(index_offset) {

}

local listbox = fe.add_listbox( x, y, w, H );
listbox.format_string = "[!Title(index_offset)]";


Good news. Fixed all issue. I will release new version soon. Thank you.

kent79

  • Hero Member
  • *****
  • Posts: 856
    • View Profile
Re: Pandoras Box Theme
« Reply #11 on: June 16, 2016, 08:22:35 AM »
Thank you for keilmillerjr hints. I have updated the theme. You may download it from post #1  :)

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Pandoras Box Theme
« Reply #12 on: June 16, 2016, 11:25:18 AM »
Thank you for keilmillerjr hints. I have updated the theme. You may download it from post #1  :)

Woohoo! Did passing the index_offset to the magic token work? I haven't tried it yet and I am curious.

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Pandoras Box Theme
« Reply #13 on: June 16, 2016, 05:29:14 PM »
How do you guys like using the fe.layout.preserve_aspect_ratio? I assume you need to turn off aspect_ratio for it to scale to different resolutions. I'm curious if there's an advantage to using it compared to the way I auto-scale my layouts. It would be less coding for sure.

Just wanted to get some feedback on any scaling issues. Thanks...

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: Pandoras Box Theme
« Reply #14 on: June 16, 2016, 05:34:27 PM »
Keilmillerjr-

BTW, your mvscomplete layout looks nice and clean on a crt monitor.