Compare commits
3 Commits
ee47e21d34
...
1666e350a6
Author | SHA1 | Date |
---|---|---|
Niklas | 1666e350a6 | |
Niklas | 58295ade3c | |
Niklas | 2591df6b28 |
|
@ -139,7 +139,7 @@ export const App: FC<{}> = props => {
|
|||
return (
|
||||
<Base fit overflow="hidden" className={imageRendering && "image-rendering-pixelated"}>
|
||||
{(!isReady || isError) && <LoadingView isError={isError} message={message} percent={percent} />}
|
||||
{uiFPSCounter && <FPSStats />}
|
||||
{uiFPSCounter && <FPSStats top={0} left={"50%"} />}
|
||||
<TransitionAnimation type={TransitionAnimationTypes.FADE_IN} inProp={isReady}>
|
||||
<MainView />
|
||||
</TransitionAnimation>
|
||||
|
|
|
@ -3,6 +3,8 @@ import {GetNitroInstance} from "..";
|
|||
export const LocalizeBadgeDescription = (key: string) => {
|
||||
let badgeDesc = GetNitroInstance().localization.getBadgeDesc(key);
|
||||
|
||||
if (badgeDesc === "") return badgeDesc;
|
||||
|
||||
if (!badgeDesc || !badgeDesc.length) badgeDesc = `badge_desc_${key}`;
|
||||
|
||||
return badgeDesc;
|
||||
|
|
|
@ -255,7 +255,8 @@ export const DraggableWindow: FC<DraggableWindowProps> = props => {
|
|||
if (!windowOptions || !windowOptions.offset) return;
|
||||
|
||||
setDelta({x: 0, y: 0});
|
||||
if (localStorage.offset) setOffset(windowOptions.offset);
|
||||
|
||||
if (windowOptions.offset) setOffset(windowOptions.offset);
|
||||
}, [uniqueKey]);
|
||||
|
||||
return createPortal(
|
||||
|
|
Loading…
Reference in New Issue