Skip to content

Commit

Permalink
Improve header art
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Jul 30, 2023
1 parent 52131cc commit 77317fe
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
34 changes: 21 additions & 13 deletions src/common/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
This code is licensed under the GPL v3 license. Refer to the LICENSE file for
more details.
"""
import ui

# Version info
VERSION = (1, 3, 0)
Expand Down Expand Up @@ -55,32 +56,39 @@ def getVersionString() -> str:
]
}

ASCII_HEADER_ART = r"""
HEADER_TEMPLATE = r"""
.
,;;'
;;'
.,;/F\/;, ,L,
,\FFFLFLFFLF; ;L'
;FLFLFLFFLFFFFLF/L;;,, ,,;;;;;/;;,
'FLL\LFFFFFLFLFLFFFLFFFFLL;;,.'` ',&
':/L;/FFFFLFFLFFFFFLFFF\ &;
\;FFFFFLFFFFLFFFFLF; .&/
,;LFFFLFLFLLFFLFLFFL ,;&/
.;;:.'/LFLFL\F;,;LL\FL/ ./&'
.,;/FL/;, ,/,
,\UCS;FL;UCS; ;/'
;FL;UCS;FL;UCS;FL\;;,, ,,;;;;;/;;,
'UCS;FL;UCS;FL;UCS;FL;UCS;;;,.'` ',&
':/UCS;FL;UCS;FL;UCS;FL\ &;
\UCS;FL;UCS;FL;UCS;\ .&/
,;FL;UCS;FL;UCS;FL;; ,;&/
.;;:.'/FL;UCS/;,UCS;FL/ ./&'
.;;,' '.' 'FL/' ;&/"
,;,' ,\\;'
.;;. ,,';\\;'
.;;' ,;L\/'`
;;' .,/\L;'
;/ .,;/\/,'..
\;, .,;/&/;;. ,'
":;;;;;//;;&/'' ;
``'''`` .'
\;, .,;/&/;;. ,' Universal Controller Script
":;;;;;//;;&/'' ; Version {version}
``'''`` .' FL Studio {fl_version}
.;
', ,:'
', ,:' Made with <3 by Miguel Guthridge
';''
"""


def getHeaderArt():
return HEADER_TEMPLATE\
.replace("{version}", getVersionString())\
.replace("{fl_version}", str(ui.getVersion()))


# Device enquiry message
UNIVERSAL_DEVICE_ENQUIRY = bytes([0xF0, 0x7E, 0x7F, 0x06, 0x01, 0xF7])

Expand Down
4 changes: 2 additions & 2 deletions src/device_event_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def onIdle(self) -> None:
@catchContextResetException
def bootstrap(self):
log("bootstrap.initialize", "Load success", verbosity.INFO)
print(consts.ASCII_HEADER_ART)
print(f"Universal Event Forwarder: v{getVersionString()}")
print(consts.getHeaderArt())
print(f"Universal Event Forwarder")

dev = OverallDevice()

Expand Down
3 changes: 1 addition & 2 deletions src/device_universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ def onIdle(self) -> None:
@catchContextResetException
def bootstrap(self):
log("bootstrap.initialize", "Load success", verbosity.INFO)
print(consts.ASCII_HEADER_ART)
print(f"Universal Controller Script: v{getVersionString()}")
print(consts.getHeaderArt())
print(ExtensionManager.getBasicInfo())
print("Type `help` for help using the script\n")

Expand Down

0 comments on commit 77317fe

Please sign in to comment.