mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
commit
480d47eece
4
dist/engine.bundle.js
vendored
4
dist/engine.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -119,7 +119,7 @@ function Industry(params={}) {
|
||||
};
|
||||
|
||||
this.name = params.name ? params.name : 0;
|
||||
this.type = params.type ? params.type : 0;
|
||||
this.type = params.type ? params.type : Industries.Agriculture;
|
||||
|
||||
this.sciResearch = new Material({name: "Scientific Research"});
|
||||
this.researched = {}; // Object of acquired Research. Keys = research name
|
||||
|
@ -55,12 +55,11 @@ function ScriptLogPopup(props: IProps): React.ReactElement {
|
||||
|
||||
function drag(event: React.MouseEvent<HTMLElement, MouseEvent>): void {
|
||||
event.preventDefault();
|
||||
//console.log(props.container.clientWidth);
|
||||
//console.log(props.container.clientHeight);
|
||||
let x = event.clientX;
|
||||
let y = event.clientY;
|
||||
console.log(props.container.clientWidth);
|
||||
let left = props.container.offsetLeft+props.container.clientWidth/2;
|
||||
let top = props.container.offsetTop+props.container.clientHeight/2;
|
||||
let top = props.container.offsetTop+props.container.clientWidth/5;
|
||||
function mouseMove(event: MouseEvent): void {
|
||||
left+=event.clientX-x;
|
||||
top+=event.clientY-y;
|
||||
|
Loading…
Reference in New Issue
Block a user