Jump to content


Jummit

Member Since 16 Mar 2017
Offline Last Active Nov 17 2019 07:36 PM
-----

Posts I've Made

In Topic: CCLite for CraftOS 1.8

24 October 2019 - 09:37 AM

A tiny issue I found: the mouse_drag event returns 1 when dragging with the middle mouse button. It should be 3.
Quick fix: put
table.insert (self.eventQueue, {"mouse_drag", love.mouse.isDown(3) and 3 or love.mouse.isDown(2) and 2 or 1, termMouseX, termMouseY})
in line 836

In Topic: Multitasking Window API

03 April 2019 - 07:49 PM

View PostCCTech, on 03 April 2019 - 07:38 PM, said:

View PostJummit, on 03 April 2019 - 05:05 PM, said:

I need more of your code to help you. What does windows.update and windows.new do?

Uhh.. it's from your window API i just did

local windows = require(TheApiPath)

instead of

local program = require(TheApiPath)

It was all of my code that I posted which is for handling the Windows
Oops, I didn't spot that. I havn't worked with this api for quite some time, so I didn't notice.
Your issue is that the taskBar function never returns anything. Here is the fixed code:
function taskBar()
  return windows.new(function()
    shell.run("/PowerOS/sys/taskBar)")
  end, 9, 1, 35, 2)
end

In Topic: Multitasking Window API

03 April 2019 - 05:05 PM

View PostCCTech, on 02 April 2019 - 02:05 PM, said:

I tried to add this windows system to my OS and now I stuck at making a window handler.

- snip -

I need more of your code to help you. What does windows.update and windows.new do?