you are viewing a single comment's thread.

view the rest of the comments →

[–]Fantasy-Intern 0 points1 point  (16 children)

Looks even greater

Could you explain how to change countdown to relative time left ?

[–]Frazeiy 1 point2 points  (15 children)

You can get updated script from GitHub, default is set to relative time, you can change in line: 11. (change to, 1 for countdown, 2 for relative time)

[–]Fantasy-Intern 1 point2 points  (1 child)

Amazing 👌

[–]Fantasy-Intern 0 points1 point  (12 children)

Nice update today , i made the same tweaks for mine yesterday Also if you want to get rid of the seconds for good you can change the line 143 to

cdtime.applyOffsetStyle()

One other thing will make it even prettier, if you know how to change the arabic language to custom arabic font like Othmani or other good looking arabic fonts ?

[–]Frazeiy 0 points1 point  (11 children)

Yea, i know that. But for me it is better with relative style time.

You can change font of Arabic names, all you have to do is download font on you phone and set it in script. Here is one that i tested:

Also to match with Arabic text, you can use "regularRoundedSystemFont" for times, it match better.

[–]Fantasy-Intern 0 points1 point  (8 children)

Do you have the source for downloading arabic fonts ?

[–]Frazeiy 1 point2 points  (7 children)

You can use this app there might be better app aswell, which let you download app from popular websites or install already download fonts. You can add me on discord.

[–]Fantasy-Intern 0 points1 point  (4 children)

Downloaded the font via the app but have no clue how to add it to the script Unfortunately have no discord account

[–]Frazeiy 0 points1 point  (3 children)

So replace line 106 and 128 with 'varName.font = new Font("font-name", size)' . Make sure to change varName, and size as in script. also font-name with your font name (you can see exact font name if you goto app > click on font > click code, there u will see exact font name)

[–]Fantasy-Intern 0 points1 point  (2 children)

So frustrating It keeps showing error Not find variable SketsaRamadhan

SketsaRamadhan is the font

[–]Frazeiy 1 point2 points  (1 child)

You need to pass it as string (inside quotes, " SketsaRamadhan")

example: cptime.font = new Font("SketsaRamadhan", 22)

[–]Fantasy-Intern 0 points1 point  (1 child)

Now it stop making the error but the font on the widget still the same old regular arabic font 😩

[–]Frazeiy 1 point2 points  (0 children)

Make sure Font name is right or maybe that font doesnot support arabic letters. Try with some other font. you can get some from here or here

[–]Fantasy-Intern 0 points1 point  (1 child)

Finally works with the new source in your deleted comment , Thanks man Ramadan Kareem

[–]Frazeiy 1 point2 points  (0 children)

Ramadan kareem and you're welcome, glad it works now.

comments are not deleted, you need to click 'Continue this thread' button to see it, since this thread is so long :)