Update to Profectus 0.7 #1
3 changed files with 10 additions and 16 deletions
|
@ -5,20 +5,14 @@
|
|||
import { main } from "data/projEntry";
|
||||
import { createCumulativeConversion } from "features/conversion";
|
||||
import { createHotkey } from "features/hotkey";
|
||||
import { bonusAmountMixin } from "mixins/bonusDecorator";
|
||||
import { createRepeatable } from "features/clickables/repeatable";
|
||||
import { createReset } from "features/reset";
|
||||
import MainDisplay from "features/resources/MainDisplay.vue";
|
||||
import { createResource } from "features/resources/resource";
|
||||
import { addTooltip } from "wrappers/tooltips/tooltip";
|
||||
import { createResourceTooltip } from "features/trees/tree";
|
||||
import { createUpgrade } from "features/clickables/upgrade";
|
||||
import { BaseLayer, createLayer } from "game/layers";
|
||||
import { noPersist, persistent } from "game/persistence";
|
||||
import { createCostRequirement } from "game/requirements";
|
||||
import type { DecimalSource } from "util/bignum";
|
||||
import { render, renderCol, renderRow } from "util/vue";
|
||||
import { computed } from "vue";
|
||||
import { render } from "util/vue";
|
||||
import { addTooltip } from "wrappers/tooltips/tooltip";
|
||||
import { createLayerTreeNode, createResetButton } from "../common";
|
||||
|
||||
const id = "p";
|
||||
|
|
|
@ -67,10 +67,14 @@ export function createClickable<T extends ClickableOptions>(optionsFunc?: () =>
|
|||
<span>
|
||||
{_display.title != null ? (
|
||||
<div>
|
||||
{render(_display.title, el => <h3>{el}</h3>)}
|
||||
{render(_display.title, el => (
|
||||
<h3>{el}</h3>
|
||||
))}
|
||||
</div>
|
||||
) : null}
|
||||
{render(_display.description, el => <div>{el}</div>)}
|
||||
{render(_display.description, el => (
|
||||
<div>{el}</div>
|
||||
))}
|
||||
</span>
|
||||
);
|
||||
} else if (_display != null) {
|
||||
|
|
|
@ -89,15 +89,11 @@ export function render(
|
|||
return wrapper?.(object) ?? object;
|
||||
}
|
||||
|
||||
export function renderRow(
|
||||
...objects: (VueFeature | MaybeGetter<Renderable>)[]
|
||||
): JSX.Element {
|
||||
export function renderRow(...objects: (VueFeature | MaybeGetter<Renderable>)[]): JSX.Element {
|
||||
return <Row>{objects.map(obj => render(obj))}</Row>;
|
||||
}
|
||||
|
||||
export function renderCol(
|
||||
...objects: (VueFeature | MaybeGetter<Renderable>)[]
|
||||
): JSX.Element {
|
||||
export function renderCol(...objects: (VueFeature | MaybeGetter<Renderable>)[]): JSX.Element {
|
||||
return <Col>{objects.map(obj => render(obj))}</Col>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue